How to Insert Relational Table with Returning Clause ? (Doc ID 60555.1)

Last updated on OCTOBER 25, 2010

Applies to:

Oracle Server - Enterprise Edition - Version: 8.1.7.4 to 11.2.0.1 - Release: 8.1.7 to 11.2
Oracle Server - Personal Edition - Version: 8.1.7.4 to 11.2.0.1   [Release: 8.1.7 to 11.2]
Oracle Server - Standard Edition - Version: 8.1.7.4 to 11.2.0.1   [Release: 8.1.7 to 11.2]
Information in this document applies to any platform.

Goal

This example shows how to do a simple array insert with a returning clause by using callbacks through OCIBindDynamic.

To run this program you will need the following table in the scott/tiger account:

create table msg (msg varchar2(120));

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms