下面这句话哪错了(delphi) sqltr:='select * from 管理员 where (username='+''''+edit1.Text+''''+') and (password='+''''+edit2.text+''''+')'; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 看起来没有错啊。也可以这么写:sqltr:='select * from 管理员 where (username='''+edit1.Text+''') and (password='''+edit2.text+''')'; 试下,这样对不?sqltr:='select * from 管理员 where username='''+''''''+edit1.Text+''''''+''' and password=''''+''''''+edit2.text+'''''+''''; 也就是这样写就可以sqltr:='select * from 管理员 where username='''+edit1.Text+''' and password='''+edit2.text+''''; 没有错啊~~可以改为:sqltr:='select * from 管理员 where (username='+quotedstr(edit1.Text)+')+and (password='+quotedstr(edit2.text)+')'; 求一个在线自动升级的程序代码 还是关于dbgrid导入Excel的问题! 只用Edit文本框怎样控制只接受数字、正负号和小数点呢 懂mssql2000的来帮忙!关于删除! PCHAR类型不安全? 对于拨号问题 一个TXT文件为一列15位的身份证号码,现在需要抽奖,选出一个号码。请问使用随机数怎么使用? image.canvans问题 高手请来指教一下。(70+65+60分) 如何将d盘的某个文件下的目录树存到数据库中去? 能详细点吗? memo的几个简单问题 delphi彻底删除VF记录语句!
sqltr:='select * from 管理员 where (username='''+edit1.Text+''') and (password='''+edit2.text+''')';
sqltr:='select * from 管理员 where username='''+edit1.Text+''' and password='''+edit2.text+'''';
可以改为:
sqltr:='select * from 管理员 where (username='+quotedstr(edit1.Text)+')+and (password='+quotedstr(edit2.text)+')';