Last active
December 17, 2015 16:18
-
-
Save fedir/5637338 to your computer and use it in GitHub Desktop.
Get powermail sent mails since some time #typo3 #powermail
This file contains 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 characters
# Count first | |
SELECT count(1) FROM tx_powermail_mails WHERE (tstamp > unix_timestamp(STR_TO_DATE('01:00:00','%d/%m/%Y %H:%i:%s'))) AND (tstamp < unix_timestamp(STR_TO_DATE('01:01:00','%d/%m/%Y %H:%i:%s'))) ORDER BY FROM_UNIXTIME(tstamp) ASC; | |
# Get dates | |
SELECT FROM_UNIXTIME(tstamp) FROM tx_powermail_mails WHERE (tstamp > unix_timestamp(STR_TO_DATE('01:00:00','%d/%m/%Y %H:%i:%s'))) AND (tstamp < unix_timestamp(STR_TO_DATE('01:01:00','%d/%m/%Y %H:%i:%s'))) ORDER BY time_send ASC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment