what is trigger at Mysql Phpmyadmin code example
Example 1: Create Trigger in phpMyAdmin
CREATE TRIGGER before_insert_money BEFORE INSERT ON money
FOR EACH ROW UPDATE accounts SET balance=10.0;
Example 2: Create Trigger in phpMyAdmin
delimiter $$
CREATE TRIGGER copy_pid AFTER INSERT on upload FOR EACH ROW
BEGIN
INSERT INTO rating (uid,pid) VALUES (NEW.username,NEW.id);
END$$
delimiter ;