What is SERIAL data type in MySQL?

Answers were Sorted based on User's Feedback



What is SERIAL data type in MySQL?..

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

What is SERIAL data type in MySQL?..

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 is SERIAL data type in MySQL?..

Answer / amith

BIGINT NOT NULL PRIMARY KEY AUTO_INCREMENT .

Is This Answer Correct ?    44 Yes 32 No

Post New Answer

More MySQL Interview Questions

What does a TIMESTAMP do on UPDATE CURRENT_TIMESTAMP data type?

0 Answers  


What are slow queries?

0 Answers  


What?s the difference between PRIMARY KEY and UNIQUE in MyISAM?

4 Answers   Aufait, CSS, Wipro,


What is procedural api?

0 Answers  


Which statement is used in a select query for partial matching?

0 Answers  






How do I start mysql in linux?

0 Answers  


What is processlist in mysql?

0 Answers  


What is new mysqli?

0 Answers  


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.

6 Answers  


What is mysql community edition?

0 Answers  


How to determine the location of the data directory?

0 Answers  


What is the purpose of using ifnull() function?

0 Answers  


Categories