Select only Columns without Null values in Oracle

后端 未结 2 1012
离开以前
离开以前 2020-12-22 03:10

I have 20 columns in my table....

How can I select only columns that don\'t have null value

col1 col2 col3
20    12   null

Desired

2条回答
  •  春和景丽
    2020-12-22 03:37

    You can go to the table's metadata and check for the columns which are defined NOT NULL and create a select query with only those columns.

提交回复
热议问题