select sum(xmzs) zs from dm_zxxm_info
where 1=1
and fzrh = (select gh
from jg_jzgjcsj
where 1=1 and xm='"+ yg +"'") ;
这个分号去掉
---