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 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 :: continue in sql 
Sql :: alter table add column boolean 
Sql :: get role postgres 
Sql :: forgot my mysql password mac 
Sql :: check timezone of mysql database 
Sql :: sql change column types 
Sql :: query for all indexes in table postgres 
Sql :: sql server find columns list in tables 
Sql :: show host mysql 
Sql :: postgresql generate uuid 
Sql :: mysql query to get column names 
Sql :: alter table column size oracle 
Sql :: sql server alter table column nullable 
Sql :: postgres alter user password 
Sql :: install mysql on mac 
Sql :: mysql users and privileges list 
Sql :: possgress drop if exists table 
Sql :: Row Number is sql server 
Sql :: reset identity column in sql server 
Sql :: mysql get time from datetime 
Sql :: oracle user last connection date 
Sql :: select password from user mysql 
Sql :: adding a default constraint to an existing column in sql 
Sql :: ORA-01950 
Sql :: postgres extract number from string 
Sql :: psql: error: connection to server on socket "/tmp/.s.PGSQL.5432" f 
Sql :: oracle delete last row 
Sql :: generate random data postgresql 
Sql :: cross schema query oracle 2 users 
Sql :: postgresql define pk sequence next number 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =