主从表中从表的显示代码为:
      qy6.close;
      qy6.sql.clear;
      qy6.SQL.Add('select * from #3 where pz=:pz and gg=:gg and xs=:xs');
     qy6.open;
改成 
      qy6.close;
      qy6.sql.clear;
      qy6.SQL.Add('select * from #3 where substring(pz,2,20)=:substring(pz,2,20) and gg=:gg and xs=:xs');
      qy6.open;
提示','附近有语法错误,请问如何解决?