Professional Documents
Culture Documents
DELIMITER !
CREATE TRIGGERcancel_delete_mahasiswa
BEFORE DELETE
ON mahasiswa
FOR EACH ROW
BEGIN
SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'data tidak dapat dihapus';
END!
DELIMITER ;
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
E:\Semester 3\himatif>dir
Volume in drive E is DATA
Volume Serial Number is C28C-35B8
E:\Semester 3\himatif>