While creating the structure of the table ‘Commodity’, you want the field ‘CommodityCode’ to automatically increment in sequential order by 1 whenever a new record is added. How can you ensure this?
Answers
Answered by
8
Answer:
I have a MySQL table with an auto increment primary key. I deleted some rows in the middle of the table. Now I have, for example, something like this in the ID column: 12, 13, 14, 19, 20. I deleted the 15, 16, 17 and 18 rows.
I want to reassign / reset / reorder the primary key so that I have continuity, i.e. make the 19 a 15, the 20 a 16, and so on.
Answered by
14
Answer:
hope it helps you mate . plz make my answer brainliest
Attachments:
Similar questions
Math,
4 months ago
Social Sciences,
4 months ago
Computer Science,
4 months ago
Math,
8 months ago
Math,
8 months ago
Chemistry,
1 year ago