create trigger UpdateTitleAdvance
on titles
for update
as
if (select advance from inserted)>15000
begin
print 'Gia tri cua cot advance phai nho hon 15000'
rollback transaction
end
update titles set advance=16000 where title_id='BU1032'
Nuk ka komente:
Posto një koment