View Single Post
Old 03-28-2009, 05:19 PM  
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,099
Quote:
Originally Posted by eMonk View Post
btw isn't there a way to delete ALL data from a database? deleting data in tables one by one is a bit tedious. good thing i didn't have too many.
You could just drop the entire database and then create it again at the top of your script.

drop database dbname;
create dbname;
use dbname;

create table....... etc etc etc
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote