How to change a datetime or date column in MySQL to default NULL.

Without applying the NO_ZERO_DATE compatibility mode workaround. Also fixes incorrect datetime value: '0000-00-00 00:00:00'.

Share:
  • 1
  • 0

1 thought on “MySQL 5.7 set datetime column to NULL from 0000-00-00 00:00:00”

Questions? Suggestions? Let us know with a comment!

This site uses Akismet to reduce spam. Learn how your comment data is processed.