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



What happens when the column is set to AUTO INCREMENT and you reach the maximum value for that tab..

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

What happens when the column is set to AUTO INCREMENT and you reach the maximum value for that tab..

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

Post New Answer

More MySQL Interview Questions

Use a regular expression to find records. Use “REGEXP BINARY” to force case-sensitivity. This finds any record beginning with r.

0 Answers  


What is int unsigned?

0 Answers  


What is the difference between CHAR and VARCHAR data types?

2 Answers   Ramco,


What is dump in mysql?

0 Answers  


What are the other commands to know the structure of a table using mysql commands except explain command?

0 Answers  






What are the difference between now and current_date in mysql?

1 Answers  


How Switch (select or use) to a database.

0 Answers  


what is constraints?

0 Answers  


How to update database permissions/privilages.

0 Answers  


Is there an object-oriented version of MySQL library functions?

1 Answers  


What does it mean to be case sensitive?

0 Answers  


What is a transaction? Describe mysql transaction properties.

0 Answers  


Categories