English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2007-04-06 18:26:55 · 4 answers · asked by Anonymous in Computers & Internet Programming & Design

E.g. in the users table a user deletes his account which has an ID of 5 - will mysql ever fill in 5 again?

2007-04-06 18:27:40 · update #1

4 answers

No unless ofcourse you drop the table and recreate it!
Auto-increment values keep on increasing. So if the table has 1000 rows and id 5 is deleted, the next row added would be 1001 and NOT 5!

2007-04-07 02:41:03 · answer #1 · answered by Memphis 3 · 0 0

If the field of your sample database table is an auto-increment, the database will automatically assign in the next available id number (starting with increment of 1, unless you specify otherwise)

2007-04-06 18:33:28 · answer #2 · answered by spn 2 · 1 0

there would properly be in reality one 'undemanding key' in a table. attempt, CREATE table VIOLATIONCITATION (ViolationCitationID Int undemanding KEY, VIOLATIONID CHAR(5) REFERENCES VIOLATION(VIOLATIONID), CITATIONID CHAR(5) REFERENCES quotation(CITATIONID), FINECHARGED DECIMAL(5,2) );

2016-12-03 10:33:09 · answer #3 · answered by wisorserratore 4 · 0 0

No

2007-04-06 18:29:34 · answer #4 · answered by Kasey C 7 · 3 0

fedest.com, questions and answers