...从数据库中读取密码和用户名,错误会提示,用delphi
发布网友
发布时间:2024-10-18 18:04
我来回答
共1个回答
热心网友
时间:2024-10-31 11:47
SQL:
(select 1 from usertable where user = xxxx and password = xxxx)
delphi:
adoquery.sql.text := SQL;
adoquery.open;
if adoquery.recordcount>0 then
showmessage('登录成功!')
else ShowMessage('登录失败');