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? Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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.