请问DELPHI TADOQUERY 如何获得参数替换后的最终SQL语句?
如:
    ADOQ_Update_pd_d2.SQL.Clear;
    ADOQ_Update_pd_d2.SQL.Add('update pd_d2 set zhsm=:zhsm,ptsm=:ptsm,hq=:hq,pdhhptxx=:pdhhptxx');  
    ADOQ_Update_pd_d2.SQL.Add('where pdbh=:pdbh and pdhh=:pdhh and hh=:hh and ptxx=:ptxx and hhxx=:hhxx');。。
      ADOQ_Update_pd_d2.Parameters.ParamByName('pdbh').Value:=pdbh;
      ADOQ_Update_pd_d2.Parameters.ParamByName('pdhh').Value:=pdhh;
      ADOQ_Update_pd_d2.Parameters.ParamByName('hh').Value:=hh;
      ADOQ_Update_pd_d2.Parameters.ParamByName('ptxx').Value:=ptxx;用ADOQ_Update_pd_d2.sql.text取得还是带参数的。