begin
adoquery1.sql.add('insert...');
adoquery1.excuteSql;
adoquery2.Close;
adoquery2.SQL.Clear;
adoquery2.SQL.Add('SELECT id from----');
adoquery2.Open;
temp11:=adoquery2.fieldbyname('id').asstring;
if (temp11='')or (temp11=' ') then
showmessage('插入不成功')
else
showmessage('插入成功')
end