Guest User

Untitled

a guest
Jan 21st, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. mysql> SELECT * FROM boxn_mail_queue WHERE sent_time IS NULL AND try_sent < 25 AND time_to_send <= '2011-10-13 15:06:27' ORDER BY time_to_send LIMIT 0, 10;
  2. 10 rows in set (6.69 sec)
  3.  
  4. boxn_mail_queue | CREATE TABLE `boxn_mail_queue` (
  5. `id` bigint(20) NOT NULL DEFAULT '0',
  6. `create_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  7. `time_to_send` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  8. `sent_time` datetime DEFAULT NULL,
  9. `id_user` bigint(20) NOT NULL DEFAULT '0',
  10. `ip` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'unknown',
  11. `sender` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  12. `recipient` text COLLATE utf8_unicode_ci NOT NULL,
  13. `headers` text COLLATE utf8_unicode_ci NOT NULL,
  14. `body` longtext COLLATE utf8_unicode_ci NOT NULL,
  15. `try_sent` tinyint(4) NOT NULL DEFAULT '0',
  16. `delete_after_send` tinyint(1) NOT NULL DEFAULT '1',
  17. PRIMARY KEY (`id`),
  18. KEY `id` (`id`),
  19. KEY `time_to_send` (`time_to_send`),
  20. KEY `id_user` (`id_user`)
  21. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci |
Add Comment
Please, Sign In to add comment