Two remarks:
should get you started. but I strongly suggest to rethink your design! instead.$sth->execute(); # $sth is the statement-handle if ($dbh->errstr && $dbh->errstr =~ /Relation\s[a-zA-Z_-']+\salready\s +exists/) { # $dbh is the db-handle die ... }
regards,
tomte
In reply to Re: Ignore Relation already exists error from DBI
by Tomte
in thread Ignore Relation already exists error from DBI
by global
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |