S
shell~
Unregistered / Unconfirmed
GUEST, unregistred user!
有一个学生表内有学号姓名字段现要用一个edit输入学号查询
procedure TForm1.Button1Click(Sender: TObject);
begin
with query1 do
begin
close;
SQL.clear;
sql.Add('select * from student.db where 学号 like:no');
parambyname('no').asstring:=edit1.Text;
prepare;
open;
end;
end;
请问我哪里错了???
procedure TForm1.Button1Click(Sender: TObject);
begin
with query1 do
begin
close;
SQL.clear;
sql.Add('select * from student.db where 学号 like:no');
parambyname('no').asstring:=edit1.Text;
prepare;
open;
end;
end;
请问我哪里错了???