Table definition includes a YEAR column and a TIMESTAMP
mysql>
mysql> CREATE TABLE BookOrders
-> (
-> OrderID SMALLINT UNSIGNED,
-> BookID SMALLINT UNSIGNED,
-> Copyright YEAR,
-> OrderDate TIMESTAMP
-> );
Query OK, 0 rows affected (0.01 sec)
mysql>
mysql> drop table BookOrders;
Query OK, 0 rows affected (0.00 sec)
Related examples in the same category