Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;
- 10 rows in set (6.69 sec)
- boxn_mail_queue | CREATE TABLE `boxn_mail_queue` (
- `id` bigint(20) NOT NULL DEFAULT '0',
- `create_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `time_to_send` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `sent_time` datetime DEFAULT NULL,
- `id_user` bigint(20) NOT NULL DEFAULT '0',
- `ip` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'unknown',
- `sender` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
- `recipient` text COLLATE utf8_unicode_ci NOT NULL,
- `headers` text COLLATE utf8_unicode_ci NOT NULL,
- `body` longtext COLLATE utf8_unicode_ci NOT NULL,
- `try_sent` tinyint(4) NOT NULL DEFAULT '0',
- `delete_after_send` tinyint(1) NOT NULL DEFAULT '1',
- PRIMARY KEY (`id`),
- KEY `id` (`id`),
- KEY `time_to_send` (`time_to_send`),
- KEY `id_user` (`id_user`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci |
Add Comment
Please, Sign In to add comment