2

I have a product table. It had 1000+ products. I deleted all the products. Now, when I add any product, the product_id starts from above 1000. Is there any method to reset it to 1? I'm new to programming and databases. Any sort of help will be much appreciated.

Ali Zia
  • 3,825
  • 5
  • 29
  • 77

3 Answers3

2

You could run the truncate table command

TRUNCATE TABLE table_name; 
chrisShick
  • 1,096
  • 8
  • 21
2

enter image description hereenter image description heresimply do as per images given hope this will work for you

PRANAV
  • 629
  • 4
  • 13
1

Okay I found it. It is in auto_increment field in operations.

Ali Zia
  • 3,825
  • 5
  • 29
  • 77