Jump to content

Delete all


Bickey

Recommended Posts

If you want to delete every row from a table, but keep the table:

DELETE FROM `table_name`

If you want to delete the whole table

DROP TABLE `table_name`

If you want to delete the whole database

DROP DATABASE `database_name` 

 

It might be best if you use a front end like PHPMyAdmin. Then you can visualize exactly what you're deleting,

And BACKUP 1st :D

Good Luck

 

Link to comment
https://forums.phpfreaks.com/topic/226381-delete-all/#findComment-1168742
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.