My Oracle Support Banner

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

Last updated on JULY 02, 2022

Applies to:

Oracle Database - Standard Edition - Version 8.1.7.4 to 11.2.0.1 [Release 8.1.7 to 11.2]
Oracle Database - Enterprise Edition - Version 8.1.7.4 to 11.2.0.1 [Release 8.1.7 to 11.2]
Oracle Database - Personal Edition - Version 8.1.7.4 to 11.2.0.1 [Release 8.1.7 to 11.2]
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
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

To view full details, 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 a vibrant support community of peers and Oracle experts.