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 :: how to give user privelege to create dblink in oracle 
Sql :: mysql count newlines in field 
Sql :: query to check cpu utilization in oracle database 
Sql :: mysql date greater than 30 days 
Sql :: mysql get last id 
Sql :: alter user root mysql 
Sql :: sql decrement value by 1 if not null or zero 
Sql :: add mysql to path 
Sql :: reset auto increment in sql 
Sql :: Erreur SQL sur la requête Index column size too large. The maximum column size is 767 bytes. 
Sql :: sqlite3 how to get column names of a table 
Sql :: check mysql timezone 
Sql :: psql is not recognized 
Sql :: altering the column name in MySQL to have a default value 
Sql :: postgres get timestamp 
Sql :: drop temp table sql 
Sql :: create procedure with encryption 
Sql :: postgresql update to unique 
Sql :: hw to delete a procedure in pl sql 
Sql :: how to open closed port mysql in ubuntu 
Sql :: oracle split string 
Sql :: mssql cursor 
Sql :: oracle user quota on tablespace 
Sql :: how to get weekday from old date in sql 
Sql :: sql drop table statement 
Sql :: psql import backup file for windows 
Sql :: login to database mysql terminal 
Sql :: oracle alter table add column not null 
Sql :: show tables postgresql 
Sql :: SQLite order random 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =