Skip to content
Advertisement

How do I select a table column which has the name of a variable in SQL?

Advertisement

Answer

You can use Dynamic SQL to use variables for column names. Try this:

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement