I am getting strange error while inserting data into mysql table column.
Details:
Create Table Statement:
CREATE TABLE `product_offer_line` (
`object_id` int(19) NOT NULL default '0',
`snapshot_id` int(19) NOT NULL default '0',
`domain` varchar(255) NOT NULL,
`description` varchar(255) default NULL,
`name` varchar(255) NOT NULL,
`priority` int(10) default NULL,
`parent_offer_line` varchar(255) default NULL,
PRIMARY KEY (`object_id`,`snapshot_id`,`domain`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
Note here object_id as int(19)
, and my insert statement is ("INSERT INTO product_offer_line VALUES('1000000000001','1','NL','Radio and TV','TV','0','NULL')");
Now when I run this insert and than
select * from product_offer_line;
+------------+-------------+--------+-----------------------+------+----------+-------------------+
| object_id | snapshot_id | domain | description | name | priority | parent_offer_line |
+------------+-------------+--------+-----------------------+------+----------+-------------------+
| 2147483647 | 1 | NL | Standard radio and TV | CATV | 0 | NULL |
+------------+-------------+--------+-----------------------+------+----------+-------------------+
My question here is that even if am entering 1000000000001
why does select statement show 2147483647
?
I have tried creating object_id as int(64) also but even than I am having same issue.
I am not sure what is going wrong here and so would really appreciate if someone can share some insights on the issue.
Thanks.