My Oracle Support Banner

How To Obtain Information of Column Visibility (Doc ID 1608686.1)

Last updated on AUGUST 09, 2023

Applies to:

JDBC - Version 12.1.0.1.0 and later
Information in this document applies to any platform.

Goal

Invisible Columns:
One of the new features in Oracle Database 12c is to define invisible columns. The user controls whether a table column is visible or not.
The invisible columns are not seen if you gain any generic access of a table, such as:
- SELECT * FROM statements in SQL
- DESCRIBE commands in SQL*Plus
- %ROWTYPE attribute declarations in PL/SQL
- Describes in Oracle Call Interface (OCI)

You can display the invisible columns if you explicitly specify the invisible column in the column list of SELECT statement.
Similarly, you can insert a value into an invisible column only if you explicitly specify the invisible column in the column list for the INSERT statement. If you omit the column list in the INSERT statement, then the statement can only insert values into visible columns.

How to retrieve  information of whether a column is visible or not with JDBC?

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!


In this Document
Goal
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.