I have a MySql table with some fields which are of type TIMESTAMP.
I want to detect those which are “invalid” (have never had data inserted and there is no default).
Is there some MySql constant I can use ? e.g SELECT .. WHERE timestamp_column=INVALID_DATE_TIME
Or should I just compare with “0000-00-00 00:00:00 “?
Yes there would be either
nullor"0000-00-00 00:00:00"if you have not considered this at the time of insert