Answers for "create trigger for insert in phpmyadmin"

SQL
0

Create Trigger in phpMyAdmin

DROP TRIGGER IF EXISTS testTrigger;
CREATE TRIGGER testTrigger 
BEFORE INSERT ON tbl_table1 
FOR EACH ROW 
BEGIN 
  INSERT INTO tbl_table2 VALUES (NEW.id,NEW.name);
END;
Posted by: Guest on May-23-2020
0

Create Trigger in phpMyAdmin

delimiter //
CREATE TRIGGER before_insert_money BEFORE INSERT ON money
FOR EACH
ROW
BEGIN
    UPDATE accounts SET balance=10.0;
END;
//
delimiter ;
Posted by: Guest on May-23-2020

Code answers related to "create trigger for insert in phpmyadmin"

Code answers related to "SQL"

Browse Popular Code Answers by Language