Y
yankk
Unregistered / Unconfirmed
GUEST, unregistred user!
我想在表中插入一条纪录后输出一条存盘成功信息,但不知道如何判断插入成功
with ADOQuery1 do
begin
sql.clear;
sql.add('insert into class valuescno,:cname)');
parameters.paramByname('Cno').vaslue:=Edit1.Text;
parameters.paramByname('Cno').vaslue:=Edit1.Text;
execsql;
end;
if ?????????????? then
showmessage('存盘成功!');
with ADOQuery1 do
begin
sql.clear;
sql.add('insert into class valuescno,:cname)');
parameters.paramByname('Cno').vaslue:=Edit1.Text;
parameters.paramByname('Cno').vaslue:=Edit1.Text;
execsql;
end;
if ?????????????? then
showmessage('存盘成功!');