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 |
Explain what is mysql?
What are the other commands to know the structure of a table using mysql commands except explain command?
Why do we use group by and order by function in mysql?
Is mysql distributed?
What does mysqli_fetch_assoc do?
What can you do with mysql?
what is a cursor? : Mysql dba
The structure of table view buyers is as follows: +----------------+-------------+------+-----+---------+----- -----------+ | Field | Type | Null | Key | Default | Extra | +----------------+-------------+------+-----+---------+----- -----------+ | user_pri_id | int(15) | | PRI | NULL | auto_increment | | userid | varchar(10) | YES | | NULL | | +----------------+-------------+------+-----+---------+----- -----------+ the value of user_pri_id the last row 2345 then What will happen in the following conditions? Condition1: Delete all the rows and insert another row then. What is the starting value for this auto incremented field user_pri_id , Condition2: Delete the last row(having the field value 2345) and insert another row then. What is the value for this auto incremented field user_pri_id
Can we rollback truncate in mysql?
What does schema mean?
How do you kill a long running query in mysql?
What are the steps involved in query processing?