Hi Great Monks,
I can't able to insert phone no which is greater than 10 digits. But I can able to insert below or equals to 10 digits.
Here is my show create table.
mysql> show create table employee; +----------+---------------------------------------------------------- +--------------------------------------------------------------------- +--------------------------------------------------------------------- +----------+ | Table | Create Table + | +----------+---------------------------------------------------------- +--------------------------------------------------------------------- +--------------------------------------------------------------------- +----------+ | employee | CREATE TABLE `employee` ( `name` varchar(30) default NULL, `address` varchar(50) default NULL, `email` varchar(50) default NULL, `phone` int(12) default NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 | +----------+---------------------------------------------------------- +--------------------------------------------------------------------- +--------------------------------------------------------------------- +----------+ 1 row in set (0.00 sec)
When I insert the following the phone no. which has 11 digits
mysql> insert into employee values("John", "New York", "John@hotmail. +com", "12345678901");
I get the following output
John New York John@hotmail.com 2147483647
Please guide me how this happen.
Thanks
In reply to (OT) Mysql insert Problem by rose
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |