Search
 
SCRIPT & CODE EXAMPLE
 

SQL

sql server search column name in all tables

SELECT      COLUMN_NAME AS 'ColumnName'
            ,TABLE_NAME AS  'TableName'
FROM        INFORMATION_SCHEMA.COLUMNS
WHERE       COLUMN_NAME LIKE '%MyName%'
ORDER BY    TableName
            ,ColumnName;
Comment

find table from column name in sql

SELECT      c.name  AS 'ColumnName'
            ,t.name AS 'TableName'
FROM        sys.columns c
JOIN        sys.tables  t   ON c.object_id = t.object_id
WHERE       c.name LIKE '%MyName%'
ORDER BY    TableName
            ,ColumnName;
Comment

search column name sql

SELECT TABLE_NAME, COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME LIKE '%wild%';
Comment

find a column by name in a sql server table

Get Table by Column Name
Comment

PREVIOUS NEXT
Code Example
Sql :: rand mysql 
Sql :: soql more than today 
Sql :: insert select 
Sql :: postgresql delete all content 
Sql :: how covert into int in maria db 
Sql :: mysql remove database 
Sql :: sql primary key constraint 
Sql :: count in sql 
Sql :: json not contains mysql 
Sql :: how to select all fieldsin a soql query 
Sql :: sql mode 
Sql :: run psql postgres docker 
Sql :: oracle get foreign keys on table 
Sql :: oracle undo tablespace list by user 
Sql :: soql update query 
Sql :: sql insert into statement 
Sql :: SQL Server run query on linked server 
Sql :: count weekend days between two dates sql 
Sql :: postgres select except 
Sql :: delete record mysql 
Sql :: sql or 
Sql :: how to find first 3 highest salary in sql 
Sql :: mysql sublime build system 
Sql :: get number of rows in every table mysql 
Sql :: procedure syntax 
Sql :: top frequency in sql server 
Sql :: sql cte example 
Sql :: mysql pass command from command line 
Sql :: how to use select union and loop 
Sql :: mysql having 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =