Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle list columns schema

-- Depending on connected user grants:
SELECT * FROM USER_TAB_COLS WHERE TABLE_NAME = 'my_table';	-- User tables
SELECT * FROM ALL_TAB_COLS WHERE TABLE_NAME = 'my_table';	-- Available to user
SELECT * FROM DBA_TAB_COLS WHERE TABLE_NAME = 'my_table';	-- All schemas

-- Columns from all tables in a schema (adapt with USER_..., DBA_... or 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';
Comment

oracle list columns in schema

SELECT *
FROM all_tab_cols;
Comment

PREVIOUS NEXT
Code Example
Sql :: select duplicates in sql 
Sql :: commentaire table oracle 
Sql :: see all databases mysql 
Sql :: how to get yesterday date in mysql 
Sql :: postgresql list extensions 
Sql :: starts and end with vowel sql 
Sql :: sql drop table if exists 
Sql :: Mysql Case sum 
Sql :: sql search all columns of database oracle sql 
Sql :: remove space in mysql 
Sql :: how to install postgresql on wsl 
Sql :: .... ERROR! The server quit without updating PID file mysql centos 
Sql :: postgres change the name of schema 
Sql :: autoincrement sqlite command 
Sql :: mysql show table character set 
Sql :: open postgress in terminal mac 
Sql :: sql server get timezone 
Sql :: mysql check table exists 
Sql :: mysql delete row 
Sql :: mysql cannot delete or update a parent row 
Sql :: add super privilege mysql 
Sql :: how to create index mysql 
Sql :: mysql count grouped rows 
Sql :: mysql get db name 
Sql :: update left join mysql 
Sql :: show sqlite column names 
Sql :: STOP message of how many rows affected sql 
Sql :: sql current_timestamp 
Sql :: wordpress change user password sql 
Sql :: how to check nls format in oracle 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =