DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SQL
sql server set column name as variable
declare @a as varchar; set @a='TEST' exec ('select ' + @a + ' from x')
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#sql
#server
#set
#column
#variable
ADD COMMENT
Topic
COMMENT
Name
2+3 =
Submit