I am having problem to update the list of id number again starting from 1,2,3,4,5. Since I have deleted few records as I was testing the sql commands. Can you please help on how
Truncate your table first and then execute this
ALTER TABLE tablename AUTO_INCREMENT = 1