/ Published in: MySQL
URL: http://stackoverflow.com/questions/559590/selecting-empty-mysql-datetime-fields
The datetime_field value in the database is '0000-00-00 00:00:00'.
Expand |
Embed | Plain Text
SELECT * FROM `table` WHERE UNIX_TIMESTAMP(`datetime_field`) = 0
You need to login to post a comment.
