var aname,apassword,sqlstr:string;
a,b:integer;
begin
if (length(trim(edit1.text))>0) or (length(trim(edit2.text))>0) then
begin
aname:=edit1.Text;
apassword:=edit2.Text;
sqlstr:='select * from user a where (a.user1="'+aname+'") and (a.password1="'+apassword+'")';
with TQuery.Create(nil) do
try
sessionName:=Form1.Database1.SessionName;
DatabaseName:=form1.Database1.DatabaseName;
close;
SQL.Clear;
SQL.Add(sqlstr);
open;//未完,总是参数不足,期待为1,帮我啊,各位大哥们,
a,b:integer;
begin
if (length(trim(edit1.text))>0) or (length(trim(edit2.text))>0) then
begin
aname:=edit1.Text;
apassword:=edit2.Text;
sqlstr:='select * from user a where (a.user1="'+aname+'") and (a.password1="'+apassword+'")';
with TQuery.Create(nil) do
try
sessionName:=Form1.Database1.SessionName;
DatabaseName:=form1.Database1.DatabaseName;
close;
SQL.Clear;
SQL.Add(sqlstr);
open;//未完,总是参数不足,期待为1,帮我啊,各位大哥们,
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货