mysql - phpmyadmin print statement syntax error -
create trigger agecheck after insert on student each row begin if (current_date-dateofbirth) > 16 dbms_output.put_line('age must greater 16'); end if; end; i trying write trigger in phpmyadmin gives error on dbms_output.put_line. says "you have error in sql syntax". can please me out this?
dbms_output.put_line oracle pl/sql call, not available in mysql. there no direct equivalent in mysql's procedural language. closest thing call perhaps signal command class 01 (warning) or can create table trigger can insert messages.
Comments
Post a Comment