Guest User

Untitled

a guest
May 26th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. CREATE TRIGGER set_created_date
  2. BEFORE INSERT ON product
  3. FOR EACH ROW BEGIN
  4. SET NEW.created_date = now();
  5.  
  6. CREATE TABLE mytable
  7. (
  8. created_date datetime NOT NULL DEFAULT NOW()
  9. )
Add Comment
Please, Sign In to add comment