Oracle Columns Table

[Solved] Oracle Columns Table | Sql - Code Explorer | yomemimo.com
Question : oracle columns table

Answered by : vastemonde

SELECT * FROM USER_TAB_COLS WHERE TABLE_NAME = 'my_table';
SELECT * FROM ALL_TAB_COLS WHERE TABLE_NAME = 'my_table';
SELECT * FROM DBA_TAB_COLS WHERE TABLE_NAME = 'my_table';

Source : | Last Update : Thu, 11 Mar 21

Question : oracle tables with column name

Answered by : vastemonde

SELECT * FROM USER_TAB_COLUMNS WHERE COLUMN_NAME = 'MY_COLUMN'; -- Connected user
SELECT * FROM ALL_TAB_COLUMNS WHERE COLUMN_NAME = 'MY_COLUMN';	-- Other schemas
SELECT * FROM DBA_TAB_COLUMNS WHERE COLUMN_NAME = 'MY_COLUMN';	-- All tables

Source : | Last Update : Sun, 16 May 21

Answers related to oracle columns table

Code Explorer Popular Question For Sql