I am inserting over a thousand records into this table
In that case you should really consider just calling prepare() once and then reuse the resulting statement handle multiple times. This will also get you the placeholder benefits to which soonix alluded.
If you don't want to set PrintError => 1 in the connection arguments then have a read of the METHODS COMMON TO ALL HANDLES section of the DBI POD which starts off by explaining how to obtain error codes and messages.
🦛
In reply to Re: Can I get the actual error for DBI->execute() ?
by hippo
in thread Can I get the actual error for DBI->execute() ?
by SergioQ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |