Page tree
Skip to end of metadata
Go to start of metadata

PG_INSERT action

The action allows to insert a row into specified table.
 PG_INSERT handleIdent_Int, rowIdent, retCodeIdent_Int [ORAHINT hintIdent_Str]

handleIdent_Int in Identifier of Int type (handle) of the connection with a table (returned by the action PG_CONNECT).
rowIdent in One structure row identifier (row to insert).
retCodeIdent_Int out Return value of Int type - action success.
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.

Return code
The value of the parameter transHandle_Int. See the table of error codes. It is possible to get extended error information.
Table must be opened with the access _DB_MODIFY. The type of the inserted row must be correct. Values of all items of the inserted row must be valid and the structure type of the local variable must be equal to the table type.

For using the function on Microsoft SQL Server platform, there must be defined the primary key or at least unique index for a table from the platform. For the platform Sybase and Oracle, the function works without these limitations.

Related pages:

Write a comment...