Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
This code errors out saying I have an error in the MYSQL statement and I can't figure it out.my $data = qq(DELTE * FROM tablename); my $sth = $dbh->prepare($data); $sth->execute() or die $dbh->errstr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Easy way to clear a mysql table?
by RichardK (Parson) on Sep 08, 2011 at 14:23 UTC | |
|
Re: Easy way to clear a mysql table?
by mje (Curate) on Sep 08, 2011 at 14:06 UTC | |
|
Re: Easy way to clear a mysql table?
by erix (Prior) on Sep 08, 2011 at 14:00 UTC | |
|
Re: Easy way to clear a mysql table?
by blue_cowdawg (Monsignor) on Sep 08, 2011 at 14:31 UTC | |
|
Re: Easy way to clear a mysql table?
by Corion (Patriarch) on Sep 08, 2011 at 13:59 UTC |