Big integer with default value : BIGINT « Procedure Function « MySQL Tutorial






mysql>
mysql> delimiter $$
mysql>
mysql> CREATE PROCEDURE myProc()
    -> BEGIN
    ->      DECLARE l_bigint1   BIGINT DEFAULT 4000000000000000;
    ->
    ->     select l_bigint1;
    -> END$$
Query OK, 0 rows affected (0.00 sec)

mysql> delimiter ;
mysql>
mysql> call myProc();
+------------------+
| l_bigint1        |
+------------------+
| 4000000000000000 |
+------------------+
1 row in set (0.02 sec)

Query OK, 0 rows affected (0.02 sec)

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

mysql>
mysql>








11.21.BIGINT
11.21.1.Declare a big integer
11.21.2.Big integer with default value