Hello, I am working with CodeIgniter and in an operation it happens that all the contents of a table must be deleted, and then the new records must be inserted.
All this happens without problems, but I need that when new records are inserted the auto-incrementing id reinserts from 1
I use MySql as DB
Thank you very much in advance for your answers.
Use the
truncate
table_name statement instead ofdelete from
table_name