My sql data base includes index numbers with lots of gaps between
id = 1, 2, 3, 9, 10, 25, ...
because some data sets together with the corresponding index have been deleted. I would like to rebuild this automatic incrementing index in a way, that index numbers with no gaps are shown in the data base.
id = 1, 2, 3, 4, 5, 6, ...
What would the correct sql statement look like?
I have tried something like
ALTER TABLE table1 . id REBUILD
but this includes syntax errors.