I have a \'created_date\' DATETIME field which I would like to be populated with the current date upon insert. What syntax should I use for the trigger for this? This is wha
DELIMITER ;; CREATE TRIGGER `my_table_bi` BEFORE INSERT ON `my_table` FOR EACH ROW BEGIN SET NEW.created_date = NOW(); END;; DELIMITER ;