Guest User

Untitled

a guest
Jan 22nd, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. select
  2. 'Column One'
  3. ,'Column Two'
  4.  
  5. union all
  6.  
  7. select cast([Col1] as varchar)
  8. ,cast([Col2] as varchar)
  9.  
  10. FROM [dbo].[myTable]
  11. where [Col1] = @myValue
  12. and @@RowCount > 0
Add Comment
Please, Sign In to add comment