mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Merge branch 'master' into more-encompassing-number-skips
This commit is contained in:
9
samples/SQLPL/trigger.sql
Normal file
9
samples/SQLPL/trigger.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
create trigger CHECK_HIREDATE
|
||||
no cascade before insert on EMPLOYEE
|
||||
referencing new as N
|
||||
for each row mode db2sql
|
||||
if n.hiredate > current date
|
||||
then
|
||||
signal SQLSTATE '75000'
|
||||
set MESSAGE_TEXT = 'Hire date must be in the past';
|
||||
end if!
|
||||
Reference in New Issue
Block a user