Search
 
SCRIPT & CODE EXAMPLE
 

SQL

sql find column name like

-- tables:
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;
            
-- tables and views:
SELECT      COLUMN_NAME AS 'ColumnName'
            ,TABLE_NAME AS  'TableName'
FROM        INFORMATION_SCHEMA.COLUMNS
WHERE       COLUMN_NAME LIKE '%MyName%'
ORDER BY    TableName
            ,ColumnName;
Comment

PREVIOUS NEXT
Code Example
Sql :: sql throw error 
Sql :: mysql add column default value 
Sql :: sqlite create integer column with limit 
Sql :: delete triger pl pg sql 
Sql :: postgres update column with value from another table 
Sql :: how to copy data of a table from another database to table of anaother database 
Sql :: postgresql get current user name 
Sql :: O SGBD MySQL utiliza um schema próprio para o armazenamento das tabelas que compõem o dicionário de dados. Marque a alternativa que indica o nome do s 
Sql :: create user mysql 
Sql :: oracle export trigger ddl 
Sql :: pentaho + pasar de excel a sql 
Sql :: set boolean flasksql 
Sql :: oracle get nls settings 
Sql :: mysql show carset 
Sql :: my sql version 
Sql :: reutrn string after character sql 
Sql :: oracle apex who is connected 
Sql :: search query in mysql 
Sql :: mysql tinyint max value 
Sql :: creating a view sql 
Sql :: Sql creating roles 
Sql :: asp.net core with postgresql deploy on ubuntu 
Sql :: postgresql substring last 
Sql :: difference between where and having clause 
Sql :: mysql sysdate 
Sql :: sql empty table 
Sql :: update query formula in excel 
Sql :: create a unqie constraint mysql 
Sql :: SQl Server Versionen Releases und Build-Nummern 
Sql :: uppercase and lowercase in sql 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =