dzedward Posted March 19, 2008 Share Posted March 19, 2008 Is it possible to clear out all values of a table in a database, and reset the key? Link to comment https://forums.phpfreaks.com/topic/96815-clear-out-table-in-database/ Share on other sites More sharing options...
jeremyphphaven Posted March 19, 2008 Share Posted March 19, 2008 sql below to do both delete from table_name alter table table_name auto_increment=1 Link to comment https://forums.phpfreaks.com/topic/96815-clear-out-table-in-database/#findComment-495470 Share on other sites More sharing options...
KrisNz Posted March 19, 2008 Share Posted March 19, 2008 http://dev.mysql.com/doc/refman/5.0/en/truncate.html Link to comment https://forums.phpfreaks.com/topic/96815-clear-out-table-in-database/#findComment-495479 Share on other sites More sharing options...
dzedward Posted March 19, 2008 Author Share Posted March 19, 2008 truncate table worked great. Thanks to you both. Link to comment https://forums.phpfreaks.com/topic/96815-clear-out-table-in-database/#findComment-495502 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.