Search
 
SCRIPT & CODE EXAMPLE
 

SQL

how to find column in all the tables sql

select * from INFORMATION_SCHEMA.COLUMNS 
where COLUMN_NAME like '%clientid%' 
order by TABLE_NAME
Comment

find all tables with column name

SELECT
  sys.columns.name AS ColumnName,
  tables.name AS TableName
FROM
  sys.columns
JOIN sys.tables ON
  sys.columns.object_id = tables.object_id
WHERE
  sys.columns.name LIKE '%ColumnName%'
Comment

PREVIOUS NEXT
Code Example
Sql :: postgres concat_ws 
Sql :: convert to hexadecimal sql 
Sql :: sql server convert string to date 
Sql :: mysql alter table set column unique 
Sql :: mysql select last 10 rows 
Sql :: mysql convert column to uppercase 
Sql :: shell mysql connect 
Sql :: get two decimal places in sql server 
Sql :: mysql to lowercase 
Sql :: MySQL insert into examble 
Sql :: oracle index partition 
Sql :: check isolation level in mysql 
Sql :: rabbitmq service not starting 
Sql :: mysql sort by date column 
Sql :: create database collation 
Sql :: How to convert Varchar to Double in sql? 
Sql :: sql server arabic collation 
Sql :: docker open terminal mysql server 
Sql :: mysql find missing values 
Sql :: date formats in sql server 
Sql :: sqlite show table definition 
Sql :: mysql show attributes of a table 
Sql :: find duplicate users by email address in mysql 
Sql :: mysql regex replace 
Sql :: change column name sql server management studio 
Sql :: sql select sum group by id laravel 
Sql :: mysql select tables with name like 
Sql :: search for replace in mysql 
Sql :: SQL CREATE UNIQUE INDEX for Unique Values 
Sql :: mysql case when or 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =