Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle find all tables with column name

-- Oracle-specific
-- all_tab_columns is a magic table listing all columns from all tables
select table_name from all_tab_columns where column_name = 'PICK_COLUMN';
Comment

oracle get table column names

SELECT COLUMN_NAME
FROM DBA_TAB_COLS
WHERE table_name = 'my_table';
Comment

Oracle Column Names of a table

DESCRIBE Table_Name;

OR 

DESC Table_Name;
Comment

oracle find all tables with column name

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
Comment

PREVIOUS NEXT
Code Example
Sql :: sql add date hour 
Sql :: how to drop databaselink in oracle 
Sql :: drop table if exists in postgres 
Sql :: autoincrement sqlite command 
Sql :: drop view in mysql 
Sql :: oracle find text in functions 
Sql :: postgres sequence name 
Sql :: mysql modify foreign key 
Sql :: configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path 
Sql :: oracle time 24h 
Sql :: sql alter table add column if exists 
Sql :: see all users mysql 
Sql :: microsoft sql server extract hour and minute from datetime 
Sql :: [2021-10-05T13:43:48.961Z] error Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client 
Sql :: syntax for changing column size in mysql 
Sql :: how to add a index to live table mysql 
Sql :: how to update an attribute in MySQL 
Sql :: mysql import sql file 
Sql :: oracle extract minute from date 
Sql :: oracle set sequence value to max(id) 
Sql :: reset auto increment sql server 
Sql :: show sqlite column names 
Sql :: tsql try catch 
Sql :: oracle synonym 
Sql :: dual table in aql 
Sql :: mysql between start date and end date 
Sql :: mysql disable foreign keys check 
Sql :: mssql get all table names 
Sql :: select insert new table sql server 
Sql :: oracle limit user tablespace 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =