I've written something like this and this is not working. How?
mysql> create trigger deleteStudentTrigger
-> before delete on tblStudent for each row
-> begin
-> insert into tblDeletedStudents select * from tblStudent where StudentId = new.StudentId;
-> end;$
ERROR 1363 (HY000): There is no NEW row in on DELETE trigger