Last active
December 28, 2015 23:19
-
-
Save kakha13/7577866 to your computer and use it in GitHub Desktop.
Revisions
-
kakha13 revised this gist
Nov 21, 2013 . 1 changed file with 7 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,11 +2,10 @@ -- Select Older than 1 day rows SELECT * FROM column_name WHERE USER = '1234' AND added_time < DATE_ADD(NOW(), INTERVAL - 1 DAY) AND added_time <> '0000-00-00 00:00:00' -
kakha13 created this gist
Nov 21, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ -- BY Kakha Giorgashvili -- Select Older than 1 day rows SELECT * FROM column_name WHERE user='1234' AND added_time < DATE_ADD(NOW(), INTERVAL - 1 DAY) AND added_time <> '0000-00-00 00:00:00'