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

How do you select a table?

0 Answers  


Why myisam is faster than innodb?

0 Answers  


Why do we use mysql?

0 Answers  


What are Heap tables?

1 Answers  


How do I connect to a database in mysql workbench?

0 Answers  






Which statement is used to delete a table in MySQL.

0 Answers  


What is query log in mysql?

0 Answers  


What is cast in mysql?

0 Answers  


what are the different tables present in mysql? : Mysql dba

0 Answers  


In the below example, how many String Objects are created? String s1="I am Java Expert"; String s2="I am C Expert"; String s3="I am Java Expert";

1 Answers  


What is mysql routine?

0 Answers  


What is the difference between char and varchar?

0 Answers  


Categories