krot

SQL дата -7 day

Mar 22nd, 2016
72
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CREATE TABLE(`DATEL` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP)
  2.  
  3. `DATEL`>ADDDATE(now(), INTERVAL -7 DAY)
RAW Paste Data