NUMERIC(8,2) DEFAULT 9.95 : NUMERIC « Procedure Function « MySQL Tutorial






mysql>
mysql> delimiter $$
mysql>
mysql> CREATE PROCEDURE myProc()
    -> BEGIN
    ->      DECLARE l_numeric   NUMERIC(8,2) DEFAULT 9.95;
    ->
    ->     select l_numeric;
    -> END$$
Query OK, 0 rows affected (0.00 sec)

mysql> delimiter ;
mysql>
mysql> call myProc();
+-----------+
| l_numeric |
+-----------+
|      9.95 |
+-----------+
1 row in set (0.00 sec)

Query OK, 0 rows affected (0.00 sec)

mysql>
mysql> drop procedure myProc;
Query OK, 0 rows affected (0.00 sec)

mysql>
mysql>








11.28.NUMERIC
11.28.1.Variable type NUMERIC(8,2)
11.28.2.NUMERIC(8,2) DEFAULT 9.95