S
settingsun
Unregistered / Unconfirmed
GUEST, unregistred user!
query.Close;
query.SQL.Clear;
query.SQL.Add('select ypzzd.KFR ywkfr,ypzzd.YYDDH ywyyddh,product.XH ywxh, ypzzd.SL ywsl,ypzzd.JHWCR ywjhwcr,ypzzd.BZ ywbz');
query.SQL.Add('from ypzzd');
query.SQL.Add('INNER JOIN product ON ypzzd.YPBH=product.YPBH where');
query.SQL.Add('ypzzd.ZZDZT='+'"'+'1'+'"');
query.SQL.Add('order by ywkfr');
运行时报错, General SQL error
Line 3 incorrect syntax near 'join'
哪里错了。
query.SQL.Clear;
query.SQL.Add('select ypzzd.KFR ywkfr,ypzzd.YYDDH ywyyddh,product.XH ywxh, ypzzd.SL ywsl,ypzzd.JHWCR ywjhwcr,ypzzd.BZ ywbz');
query.SQL.Add('from ypzzd');
query.SQL.Add('INNER JOIN product ON ypzzd.YPBH=product.YPBH where');
query.SQL.Add('ypzzd.ZZDZT='+'"'+'1'+'"');
query.SQL.Add('order by ywkfr');
运行时报错, General SQL error
Line 3 incorrect syntax near 'join'
哪里错了。