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

sql server find table name

select * from sys.tables where name like '%tablename%'
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

PREVIOUS NEXT
Code Example
Sql :: force drop all tables postgres 
Sql :: postgresql calculate age from birthdate 
Sql :: Mysql Case sum 
Sql :: sqlite alter table add column 
Sql :: mysql search for column name in all tables 
Sql :: update password postgres user 
Sql :: sql query to get column names and data types in sql server 
Sql :: installer postgresql sur ubuntu 
Sql :: psql connections 
Sql :: this is incompatible with sql_mode=only_full_group_by 
Sql :: how to drop databaselink in oracle 
Sql :: python sqlite3 create table if not exists 
Sql :: rename table sql 
Sql :: get year from date postgres 
Sql :: oracle time 24h 
Sql :: oracle service name view 
Sql :: mariadb get column names from table 
Sql :: rror: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client 
Sql :: postgresql drop primary key constraint 
Sql :: mysql count words 
Sql :: mysql monthname 
Sql :: stop psql server windows 
Sql :: oracle set sequence value to max(id) 
Sql :: how much every mysql database record takes from diskspace 
Sql :: mysql strict_trans_tables 
Sql :: delete triger pl pg sql 
Sql :: oracle aleter trigger ora-01031 
Sql :: postgres check timezone 
Sql :: oracle get nls settings 
Sql :: mysql user permission database 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =