CREATE TRIGGER check_credit_patients_trigger
on booking
for insert
as
begin
declare @con varchar(8)
select @con=condition from patients where patientsno in( select pno from inserted )
if(@con='冻结')
begin
raiserror ('该用户信用过低无法预约',16,1)
rollback transaction
end
end
就是我怎么把错误信息,或者没有成功插入的信息传到java里?
用jsp实现