oracle - Codeigniter ORA-00001: unique constraint -
this error: message: oci_execute (): ora-00001: unique constraint (schema_name.name constraint) violated
i wonder if not how handle error more simply, more generic.
because otherwise have work on each function of models check data before adding, no duplications , not give error noted above.
does know simple way solve this?
thanks.
there hint can specified allow statement succeed without inserting duplicated data. can useful replication or bulk data loading job may attempt insert same data multiple times. wouldn't recommend part of user application.
"the ignore_row_on_dupkey_index hint applies single-table insert operations. not supported update, delete, merge, or multitable insert operations. ignore_row_on_dupkey_index causes statement ignore unique key violation specified set of columns or specified index. when unique key violation encountered, row-level rollback occurs , execution resumes next input row."
Comments
Post a Comment