SELECT COLUMN_NAME AS 'ColumnName'
,TABLE_NAME AS 'TableName'
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME LIKE '%MyName%'
ORDER BY TableName
,ColumnName;
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;
SELECT TABLE_NAME, COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME LIKE '%wild%';
Get Table by Column Name
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 |