5,386
社区成员
发帖
与我相关
我的任务
分享
adoquery1.Close;
adoquery1.SQL.Clear;
adoquery1.SQL.Text := 'select * from BookInfo where BookID= ' + trim(bookIDEdit.text) +
''' or bookname=''' + trim(booknameEdit.Text) + ''' or classes= '
+ trim(TypeEdit.text) + '''';
adoquery1.Open;
if adoquery1.RecordCount = 0 then
begin
Application.MessageBox('no result in database','^_^注意!',MB_OK);
bookIDEdit.Text :='';
typeEdit.Text :='';
end