Lamez Posted October 13, 2008 Share Posted October 13, 2008 Is there a way to delete all the information in one mysql table? Quote Link to comment https://forums.phpfreaks.com/topic/128141-solved-delete-whole-table/ Share on other sites More sharing options...
unrelenting Posted October 13, 2008 Share Posted October 13, 2008 Is there a way to delete all the information in on mysql table? TRUNCATE TABLE tablename; Quote Link to comment https://forums.phpfreaks.com/topic/128141-solved-delete-whole-table/#findComment-663648 Share on other sites More sharing options...
Lamez Posted October 13, 2008 Author Share Posted October 13, 2008 do I need to use a query statement? mysql_query("TRUNCATE TABLE tablename"); Quote Link to comment https://forums.phpfreaks.com/topic/128141-solved-delete-whole-table/#findComment-663649 Share on other sites More sharing options...
bluejay002 Posted October 13, 2008 Share Posted October 13, 2008 yes Quote Link to comment https://forums.phpfreaks.com/topic/128141-solved-delete-whole-table/#findComment-663650 Share on other sites More sharing options...
Lamez Posted October 13, 2008 Author Share Posted October 13, 2008 Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/128141-solved-delete-whole-table/#findComment-663654 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.