Add an incorrect date to a special table and show the result.
mysql>
mysql> CREATE TABLE INCORRECT_DATES (COLUMN1 DATE);
Query OK, 0 rows affected (0.00 sec)
mysql> INSERT INTO INCORRECT_DATES VALUES ('2004-13-12');
Query OK, 1 row affected, 1 warning (0.00 sec)
mysql>
mysql> SELECT COLUMN1
-> FROM INCORRECT_DATES;
+------------+
| COLUMN1 |
+------------+
| 0000-00-00 |
+------------+
1 row in set (0.00 sec)
mysql>
mysql> drop table INCORRECT_DATES;
Query OK, 0 rows affected (0.00 sec)
mysql>
Related examples in the same category