Justin Swanhart ([info]swanhart) wrote,
@ 2009-06-29 16:14:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
Entry tags:amusing distraction

Warning: There are approximately 2,918,472 days until MySQL can no longer store today's date.

mysql> select now() + interval 2918472 day;
+------------------------------+
| now() + interval 2918472 day |
+------------------------------+
| 9999-12-31 16:14:03          |
+------------------------------+
1 row in set (0.00 sec)

mysql> select now() + interval 2918473 day;
+------------------------------+
| now() + interval 2918473 day |
+------------------------------+
| NULL                         |
+------------------------------+
1 row in set, 1 warning (0.00 sec)


Hehe.



Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…