Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle list columns

-- 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 :: finding duplicate column values in table with sql 
Sql :: alter table add comment oracle 
Sql :: mysql list databases 
Sql :: mariadb select multiple rows into one column 
Sql :: mysql query to get column names 
Sql :: alembic.util.exc.CommandError: Target database is not up to date. 
Sql :: postgres kill running query 
Sql :: oracle string length 
Sql :: how to increase size of column in sql 
Sql :: oracle list constraints 
Sql :: string to date postgres 
Sql :: mysql show table column comments sql 
Sql :: mysql connectorj maven de 
Sql :: dbms_output sql developer 
Sql :: mysql 1 day ago 
Sql :: how to open postgresql in mac 
Sql :: primary key reset in SQL database 
Sql :: sql getdate date only 
Sql :: tsql update datetime 
Sql :: ubuntu stop mysql from starting on boot 
Sql :: search for tables with name postgresql 
Sql :: mysql 8 error on identified by 
Sql :: get count by weekly pivot table sql server 
Sql :: sql change default collation to utf8 
Sql :: oracle delete last row 
Sql :: sqlite print all column names 
Sql :: psql count where not null 
Sql :: wordpress sql change site url 
Sql :: sql change password wordpress 
Sql :: oracle nls session 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =