Guest_imported
New member
- Jan 1, 1970
- 0
A little scenario that I’m having some headaches over…
I have an ‘ID’ column with auto_increment set, and I create 6 rows, like thus
ID
1
2
3
4
5
6
Now, if I were to ‘delete from table where id = 2’, it would become
ID
1
3
4
5
6
mySQL doesn’t seem to delete the row, but rather just the content within. I say this because if I were to now ‘insert into table values (‘’)‘, I would get this
ID
1
7
3
4
5
6
Is there any way to get around this? It is most annoying. I know the work-around solution by using “order by”, but I’d rather avoid that if at all possible.
I have an ‘ID’ column with auto_increment set, and I create 6 rows, like thus
ID
1
2
3
4
5
6
Now, if I were to ‘delete from table where id = 2’, it would become
ID
1
3
4
5
6
mySQL doesn’t seem to delete the row, but rather just the content within. I say this because if I were to now ‘insert into table values (‘’)‘, I would get this
ID
1
7
3
4
5
6
Is there any way to get around this? It is most annoying. I know the work-around solution by using “order by”, but I’d rather avoid that if at all possible.