Random Posted April 3, 2003 Share Posted April 3, 2003 Is there a way to write a PHP script that I just execute that will completely remove everything from a database? Thanks. Link to comment https://forums.phpfreaks.com/topic/300-empty-a-database/ Share on other sites More sharing options...
DocSeuss Posted April 3, 2003 Share Posted April 3, 2003 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. Link to comment https://forums.phpfreaks.com/topic/300-empty-a-database/#findComment-927 Share on other sites More sharing options...
pallevillesen Posted April 3, 2003 Share Posted April 3, 2003 DROP ...check the syntax P. Link to comment https://forums.phpfreaks.com/topic/300-empty-a-database/#findComment-928 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.