Hello Anonymous Monk,
I would first substitute warn where you have die.
Use $DBI::errstr instead of your own print statment, i.e:
$sth = $dbh->prepare($sql) or warn "$DBI::errstr.\n";
You don't need to specify the table TYPE if you are using MyISAM.
This is the default in MySQL (since 3.23).
Check out MySQL by Paul DuBois, New Riders. The book addresses
MySQL and using the Perl DBI module with MySQL.
-Lord Avatar
"A simple truth is but a complicated lie..." -Nietzche
In reply to Re: SQL Query
by LordAvatar
in thread SQL Query
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |