I am creating a table for that I am using a integer primary key field I am creating table as
CREATE TABLE `post` (
`id` int(100) NOT NULL AUTO_INCREMENT,
`description` varchar(100),
PRIMARY KEY (`id`)
);
I read this Numeric Types. according to this we can store values in int and bigint less than 20 digits.
I would like to know about following
- What is the difference between
id int(10)
andid bigint(10)
- I have used
id int(100)
is there any problem. - what data type should i use for above id(for id value 21 to 100 digits).