Jump to content

Archived

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

Random

Empty a database?

Recommended Posts

Is there a way to write a PHP script that I just execute that will completely remove everything from a database? Thanks.

Share this post


Link to post
Share on other sites

you can use

 

DELETE FROM table;

 

on all your tables, I don\'t know off hand if there is a single command to do a whole database.

 

This will remove all data from tables but the tables themselves will remain.

Share this post


Link to post
Share on other sites

×

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.