谁帮我看下这个判断问题(5分)

  • 主题发起人 主题发起人 tanbo234567
  • 开始时间 开始时间
T

tanbo234567

Unregistered / Unconfirmed
GUEST, unregistred user!
query1.SQL.Add('select * from 用户表 where 用户名='''+edit1.text+'''');
query1.ExecSQL;
if query1.recordcount<>0
then showmessage('用户名已经存在!')
请问这样应该怎样改?
 
query1.ExecSQL;改成 query1.open;
 
接受答案了.
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
后退
顶部