Share on Google+Share on Google+

MySQL BIGINT

Advertisement
This example illustrates how to use the bigint data type in the MySQL query

MySQL BIGINT

This example illustrates how to use the bigint data type in the MySQL query.

In this example we create a table with column bigint data type.

 

Query

 

create table table1 (col1 bigint default -9223372036854775807);

 

Query

 

insert into table1 values (default);

 

Query

 

select * from table1;

 

Output

 

+----------------------+
| col1                 |
+----------------------+
| -9223372036854775807 |
+----------------------+

 

Advertisements

Advertisement

Posted on: December 9, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.