P
pdb
Unregistered / Unconfirmed
GUEST, unregistred user!
var
strsql:string; //sql语句
strname:string; //名称
with ADOQuery do
begin
close;
prepared:=False;
sql.clear;
strsql:='select * from table where name='+''''+edit1.text+'''';
sql.add(strsql)
prepared:=True;
open;
if recrodcount<=0 then exit; ///在這里加多一句就好
strname:=adoquery.filedbyname('name').asstring;
close;
strsql:string; //sql语句
strname:string; //名称
with ADOQuery do
begin
close;
prepared:=False;
sql.clear;
strsql:='select * from table where name='+''''+edit1.text+'''';
sql.add(strsql)
prepared:=True;
open;
if recrodcount<=0 then exit; ///在這里加多一句就好
strname:=adoquery.filedbyname('name').asstring;
close;