Search
 
SCRIPT & CODE EXAMPLE
 

SQL

sql select column name like from multiple tables

USE AdventureWorks 
GO 
SELECT t.name AS table_name,
SCHEMA_NAME(schema_id) AS schema_name,
c.name AS column_name
FROM sys.tables AS t
INNER JOIN sys.columns c ON t.OBJECT_ID = c.OBJECT_ID
WHERE c.name LIKE '%EmployeeID%'
ORDER BY schema_name, table_name; 
Comment

PREVIOUS NEXT
Code Example
Sql :: sql grant select only 
Sql :: mysql database hyphen 
Sql :: linked server delete openquery 
Sql :: opensuse stop MySQL 
Sql :: ring MySQL Save Image inside the database 
Sql :: how change the field place in mysql 
Sql :: ACCEPT nome PROMPT on oracle 
Sql :: date to month name in mysql query 
Sql :: power bi connect to postgresql 
Sql :: sql parenthetical expression examples 
Sql :: select A from B join C as D using E where F match G order by H desc 
Sql :: Selecting data from table where sum of values in a column equal to the value in another column 
Sql :: mysqldump error --no-beep 
Sql :: ora 00001 error catch plsql 
Sql :: indexes sql 
Sql :: SQL server datetime compare 
Sql :: how to filter in sql 
Sql :: what is a stored procedure 
Sql :: postgresql allow remote connections 
Sql :: call scalar valued function sql 
Sql :: timing sql queries 
Sql :: how to retrive image from sql to picturebox usinf image location 
Csharp :: unity scene load 
Csharp :: c# how to run external program 
Csharp :: how to get ip address in c# 
Csharp :: Unity c# how to restart the level 
Csharp :: wpf numeric only textbox 
Csharp :: split with multiple delimiters c# 
Csharp :: c# how to simulate mouse click 
Csharp :: how to get the directory of the project in c# 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =