DECIMAL(7,2) ZEROFILL NOT NULL
mysql>
mysql>
mysql> CREATE TABLE PENALTIES
-> (PAYMENTNO INTEGER NOT NULL PRIMARY KEY,
-> EmployeeNO INTEGER NOT NULL,
-> PAYMENT_DATE DATE NOT NULL,
-> AMOUNT DECIMAL(7,2) ZEROFILL NOT NULL)
-> ;
Query OK, 0 rows affected (0.00 sec)
mysql> SELECT AMOUNT FROM PENALTIES;
Empty set (0.00 sec)
mysql>
mysql> drop table PENALTIES;
Query OK, 0 rows affected (0.00 sec)
mysql>
Related examples in the same category