adoquery1.SQL.Clear ;
adoquery1.sql.Add('select * from renyuanbiao where username:='''+dbedit1.text+''' and name:='''+dbedit2.text+'''') ;
adoquery1.open;
adoquery1.sql.Add('select * from renyuanbiao where username:='''+dbedit1.text+''' and name:='''+dbedit2.text+'''') ;
adoquery1.open;
解决方案 »
- DelphiDistiller.exe 运行出错 等达人牛人神人.....
- 图象识别或模式识别
- 内存溢出的问题,求教各位
- DBGrid显示问题,有点难好像
- 在windows API中,哪两个函数用于控制光驱的弹出,弹进?
- 请问一个关于打开文件的问题(调用其它文件)
- 为什么总出现"sqlserver"不存在或拒绝访问的错误??????????
- MDIForm只创建单一窗体
- 关于ADOQuery的问题
- 1.使用mediaplayer控件,怎么才能一次播放多首歌?即放完一首继续放下一首。请高手帮助,小弟感激不尽。11
- DELPHI2007的大BUG! nvarchar 零长度字符更新 BUG.
- locate 不能定位行
adoquery1.sql.Add('select * from renyuanbiao where username='''+dbedit1.text+''' and name='''+dbedit2.text+'''') ;
adoquery1.open;
adoquery1.sql.Add('select * from renyuanbiao where username='+Trim(dbedit1.text)+' and name='+Trim(dbedit2.text)) ;
adoquery1.open; 已经好久拼写的SQL了,你可以参考一下。
begin
IF Active Then close;
SQL.Clear ;
SQL.Add('select * from renyuanbiao where username='+Trim(dbedit1.text)+' and name='+Trim(dbedit2.text)) ;
open;
end;