rootstock has asked for the wisdom of the Perl Monks concerning the following question:
i am doing a inporting act from excel for sql database by perlscript, some cells could not be inported in on occation. there are thousands lines need inport, i want to know which line met problem when inporting.$sql = "INSERT INTO t1 (lsname) VALUES ('$lsname')"; $sth = $dbh->prepare( $sql ); $sth->execute; # here i want to print out a error message when the $sql could not be +execute or met problem.
update (broquaint): added <code> tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: simple question about printing sql 2000 error message
by gmax (Abbot) on Oct 07, 2003 at 06:59 UTC | |
|
Re: simple question about printing sql 2000 error message
by DrHyde (Prior) on Oct 07, 2003 at 07:59 UTC |