DB_INSUPD a DBS_INSUPD actions
Related pages:
The action is a merger of the actions DB_INSERT and DB_UPDATE (or DBS_INSERT and DBS_UPDATE). It works just with one row or more rows. If inserting a row fails (for any reasons), there is an assumption that inserting failed because of the reference integrity (unique key in database) and the action attempts to update an already existing row. There will be updated the columns, which are not part of the key, the key column(s) remains unchanged. The action is terminated successfully only if all the rows have been inserted or updated.
Note: The values of all key items in rowIdent
must be valid, otherwise the interting/updating will not take place, it will end with an error and %GetLastExtErrorCode() will return error 667.
DB_INSUPD handleIdent_Int, rowIdent, retCodeIdent_Int [ORAHINT hintIdent_Str] DBS_INSUPD dbObjIden, rowIdent, retCodeIdent_Int [TRANS transHandle_Int] [ORAHINT hintIdent_Str]
DB_INSUPD handleIdent_Int, structIdent, retCodeIdent_Int [ORAHINT hintIdent_Str] DBS_INSUPD dbObjIdent, structIdent, retCodeIdent_Int [TRANS transHandle_Int] [ORAHINT hintIdent_Str]
handleIdent_Int | in | Identifier of Int type - handle of connection with the database table (DB_CONNECT). |
dbObjIdent | in | Reference to object of Database table type. |
rowIdent | in | Identifier of one structure row (a row to insert/update). |
structIdent | in | Identifier of entire structure (the rows to insert/update). |
retCodeIdent_Int | out | Return code identifier. |
transHandle_Int | in | Identifier of the connection to the database. |
hintIdent_Str | in | Expression of String type that defines Oracle SQL hint. It is used as an instruction for the performance optimizer of SQL command. The value is used without the opening and terminating characters /*+ <orahint> */. The example is mentioned here. |
Related pages:
Pridať komentár