What happens when the column is set to AUTO INCREMENT and
you reach the maximum value for that table?
Answers were Sorted based on User's Feedback
Answer / sanjeev b
If the AUTO_INCREMENT reaches the maximum value then we
cant insert the rows into that table. If we try to insert
the values it will produce an error saying 'Duplicate
entry 'max value(ex:4294967295)' for key1
Is This Answer Correct ? | 9 Yes | 0 No |
Answer / amith
It stops incrementing. It does not overflow to 0 to prevent
data losses, but further inserts are going to produce an
error, since the key has been used already.
Is This Answer Correct ? | 11 Yes | 3 No |
Write a command to view mysql database table structure?
Why do we use group by and order by function in mysql?
What is difference between mysql and mysql server?
What is the insert?
What is mysql root?
What is difference between statement and preparedstatement?
What is the diff. bwt. primary key and unique key?
What is the difference between SQL and SQL Server?
What are the other commands to know the structure of a table using mysql commands except explain command?
Why are function needed?
How do you know the version of your mysql server?
How do I show columns in mysql?