Oracle Select All Columns

Oracle Select All Columns

  • SQL
  • 1 min read

To select all the columns from a table in Oracle, you can use an asterisk (*). Below is an example of Oracle Select All Columns:

Selecting All The Columns of a Table in Oracle

The following SQL query uses star * (asterisk) to get the all columns:

Select * from EMP;

If your question is to get the all columns from a specific tables, then you can use the following Oracle SQL query:

SELECT table_name, column_name, data_type, data_length
   FROM USER_TAB_COLUMNS
   WHERE table_name = 'EMP'

Output

TABLE_NAMECOLUMN_NAMEDATA_TYPEDATA_LENGTH
EMPEMPNONUMBER22
EMPENAMEVARCHAR210
EMPJOBVARCHAR29
EMPMGRNUMBER22
EMPHIREDATEDATE7
EMPSALNUMBER22
EMPCOMMNUMBER22
EMPDEPTNONUMBER22