Y
yukuaiz
Unregistered / Unconfirmed
GUEST, unregistred user!
运行时候提示capability not supported这个错误。。。。但仔细看SQL应该没问题的。。代码如下,。。谁能帮忙分析下吧str1:='select * from yb_zybz where dqrq>=:qsrq and dqrq<=:jsrq ';case ebzlx.ItemIndex of 0:tmp:=''; 1:tmp:='AND SBH IN (SELECT SBH FROM YB_YDJZB)'; 2:tmp:='AND SBH NOT IN (SELECT SBH FROM YB_YDJZB)';if tmp<>'' then str1:=str1+tmp;with d_sgbz.CX_Q do begin close; sql.Clear; sql.Text:=uppercase(str1); parambyname('qsrq').AsDate:=eqsrq.Date; parambyname('jsrq').AsDate:=ejsrq.Date; open; end;