my $r = $sth->execute(values %sql_data) or die "execute failed"; if ( $r == 0 ) { # do the insert }
In reply to Re: Testing to INSERT or UPDATE MySQL record
by borisz
in thread Testing to INSERT or UPDATE MySQL record
by bradcathey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |