My requirement is to have a condition for the truncate
query in MySQL
since I want only to empty half of the table. I know I can use delete from
table query. but the problem is. If I delete
, the table contents the primary key (auto_increment) will continue from the id where it was before deleted. But truncate makes it start from the beginning.
If the answer is yes please tell me how, If No, can I know the alternative way?
Thanks in advance.