in reply to Re^2: Perl DBI execute statement
in thread Perl DBI execute statement
I would think that instead of an INSERT, an UPDATE might be more appropriate in your situation? If the UPDATE fails because no record with that primary key exists, then you INSERT a brand new record with that primary key and data fields, otherwise if the UPDATE succeeds, the data fields other than primary are updated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl DBI execute statement
by cbtshare (Monk) on Dec 12, 2016 at 19:07 UTC | |
by Marshall (Canon) on Dec 14, 2016 at 19:49 UTC |