My Oracle Support Banner

SQL/Describe: Describing the Columns of a Select Statement (Doc ID 124599.1)

Last updated on JULY 02, 2022

Applies to:

Oracle Database - Enterprise Edition - Version 8.0.3.0 and later
Oracle Database - Personal Edition - Version 8.0.3.0 and later
Oracle Database - Standard Edition - Version 8.0.3.0 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Information in this document applies to any platform.Goal
The following OCI program demonstrates describing the select list items of a statement passed at runtime.  This is done by executing the select (in this case for describe only, though a normal execute can also be used) and then using the statement handle to obtain information about the given columns.


NOTE: You do not use OCIDescribeAny for describing a select statement. This is only used to describe specific objects, for example a table, procedure etc.
  


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.