$dbh->do(qq(delete from tablename where 1=1 ));
You forgot to mention what errors you saw when you tried your code...
Also do you have permissions to drop from the table? Silly question I realize, but worthy of asking none-the-less.
In reply to Re: Easy way to clear a mysql table?
by blue_cowdawg
in thread Easy way to clear a mysql table?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |