A am2000 Unregistered / Unconfirmed GUEST, unregistred user! 2001-06-24 #1 我想将查询结果显示在dbgrid中,怎么不对啊...
L lab01 Unregistered / Unconfirmed GUEST, unregistred user! 2001-06-24 #2 with qurery1.sql do begin clear; add('select * from table where'); add('id=:idvalue'); end; with query1 do begin unprepare; paramsbyname('id').asString:=edit1.text; prepare; open; end;
with qurery1.sql do begin clear; add('select * from table where'); add('id=:idvalue'); end; with query1 do begin unprepare; paramsbyname('id').asString:=edit1.text; prepare; open; end;
张 张剑波 Unregistered / Unconfirmed GUEST, unregistred user! 2001-06-24 #3 select * from table where id = ''''+edit1.text+''''
F flash6 Unregistered / Unconfirmed GUEST, unregistred user! 2001-06-24 #4 设tquery的sql属性: select * from table where id =:id 在tquery open前加入: Query1.Params.ParamByName('id').Value := edit1.text;
设tquery的sql属性: select * from table where id =:id 在tquery open前加入: Query1.Params.ParamByName('id').Value := edit1.text;
S sunys Unregistered / Unconfirmed GUEST, unregistred user! 2001-06-24 #5 select * from table where id = '+edit1.text+'
狼 狼牙 Unregistered / Unconfirmed GUEST, unregistred user! 2001-06-24 #6 s:string; s:='select * from table where id='''; s:=s+edit1.text; s:=s+'';
S shangcm Unregistered / Unconfirmed GUEST, unregistred user! 2001-06-24 #7 'select * from table where id = '''+edit1.text+''''
T tosleep Unregistered / Unconfirmed GUEST, unregistred user! 2001-06-24 #10 我看shangcm的比较好,flash6的也不错,看你想用什么方法了, 我kao,难道你不会试试吗,我自己多事,打。
A am2000 Unregistered / Unconfirmed GUEST, unregistred user! 2001-06-24 #11 kao,打就打吧,一把老骨头了... 本来我想这么简单的问题根本就不用试的... 无奈之中,拿出已经生锈的DELPHI盗版盘... 结果试一个错一个... 唉..我再看看吧... 顺便问一句: 我想写在query的sql中该怎么写?
kao,打就打吧,一把老骨头了... 本来我想这么简单的问题根本就不用试的... 无奈之中,拿出已经生锈的DELPHI盗版盘... 结果试一个错一个... 唉..我再看看吧... 顺便问一句: 我想写在query的sql中该怎么写?