G
generalzzy
Unregistered / Unconfirmed
GUEST, unregistred user!
为何执行不了
procedure TQueryForm.Button2Click(Sender: TObject);
begin
with query1 do
begin
close;
sql.Clear;
sql.Add('select bookno,bookname,backdate');
sql.Add( ' from lend a, book b');
sql.Add('where a.readerno=:maskedit1.text and b.bookno=a.bookno ');
parambyname('num').asstring:=maskedit1.text;
open;
end;
dbgrid2.Columns[0].FieldName:='bookno';
dbgrid2.Columns[1].FieldName:='bookname';
dbgrid2.Columns[2].FieldName:='backdate';
end;