Computer Science, asked by Anonymous, 7 months ago

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 Anonymous
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 sk181231
14

Answer:

hope it helps you mate . plz make my answer brainliest

Attachments:
Similar questions