daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest May 26th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top