What is SERIAL data type in MySQL?
Answers were Sorted based on User's Feedback
Answer / bhavin parikh
SERIAL is an alias for BIGINT UNSIGNED NOT NULL
AUTO_INCREMENT UNIQUE.
Reference Link :
http://dev.mysql.com/doc/refman/5.0/en/numeric-type-overview.html
Is This Answer Correct ? | 79 Yes | 8 No |
Answer / simon mahony
Check for yourself in the official docs at:
http://dev.mysql.com/doc/refman/5.0/en/numeric-type-overview.html
This states:
SERIAL is an alias for BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE.
SERIAL DEFAULT VALUE in the definition of an integer column is an alias for NOT NULL AUTO_INCREMENT UNIQUE.
Is This Answer Correct ? | 16 Yes | 3 No |
What does a TIMESTAMP do on UPDATE CURRENT_TIMESTAMP data type?
What are slow queries?
What?s the difference between PRIMARY KEY and UNIQUE in MyISAM?
What is procedural api?
Which statement is used in a select query for partial matching?
How do I start mysql in linux?
What is processlist in mysql?
What is new mysqli?
What is the main different between Null and NOT Null. Difference between Primary and Unique Key. How to Check the database from which application is it possibe.
What is mysql community edition?
How to determine the location of the data directory?
What is the purpose of using ifnull() function?