select exists (
select 1 from (
select ssrs.isenabled,ssi.skcode,ssi.shopcode
from set_syn_relation_shop ssrs inner join set_shop_info ssi
on ssrs.shopcode=ssi.shopcode) total
where total.shopcode='SI00000670' and total.skcode='SK00000287'
and total.isenabled='t'
不算长,但是exists语法,右边括号没有写
属于语法错误吧
加上就好了