Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. SELECT c.name AS ColName, t.name AS TableName
  2. FROM sys.columns c
  3. JOIN sys.tables t ON c.object_id = t.object_id
  4. WHERE c.name LIKE 'name%'
  5.  
  6. Select * from t.name where c.name like 'abc%'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement