私はdbmsで新しいクエリを使用しています。また、私はMySQLを使用しています。挿入前または更新前のエラー
コード:
-> create trigger age_trigger before insert or update of age on employee
-> for each row
-> when(new.age <25)
-> begin
-> select 'Age can not be less than 25'
-> end;
エラー:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'or update of age on employee for each row when( new.age <25) begin select 'Age c' at line 1
ありがとうございました:) –