Answers for "oracle show column of table"

SQL
2

column names in oracle sql

DESCRIBE Table_Name;

OR 

DESC Table_Name;
Posted by: Guest on September-25-2020
0

oracle show column of table

SELECT column_name
  FROM all_tab_cols
 WHERE table_name = 'USERS'
   AND owner = '" +_db+ "'
   AND column_name NOT IN ( 'PASSWORD', 'VERSION', 'ID' )
Posted by: Guest on February-15-2021
0

oracle show column of table

-- Depending on schema grants:
SELECT * FROM USER_TAB_COLS WHERE TABLE_NAME = 'my_table';	-- User tables
SELECT * FROM ALL_TAB_COLS WHERE TABLE_NAME = 'my_table';	-- Access granted
SELECT * FROM DBA_TAB_COLS WHERE TABLE_NAME = 'my_table';	-- All schemas

-- Columns from all tables in a schema (or USER_..., DBA_... instead of ALL_...):
SELECT c.TABLE_NAME, c.DATA_TYPE FROM ALL_TAB_COLS c
JOIN ALL_TABLES t ON t.OWNER = c.OWNER
WHERE OWNER = 'my_schema';
Posted by: Guest on May-02-2021

Code answers related to "oracle show column of table"

Code answers related to "SQL"

Browse Popular Code Answers by Language