Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro Substitution
Message
From
22/05/2003 14:32:11
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Macro Substitution
Miscellaneous
Thread ID:
00791817
Message ID:
00791817
Views:
58
I can't remember the proper syntax in SQL Server 2000 for something similar to macro substitution.

ie; I have a variable: @column_name varchar(30) that contains the name of a column in the customer table.

I need to: set mvalue = (select @column_name from customer) (I know this is not the right syntax) and have the value of the column come into the variable mvalue.
Thanks.
Next
Reply
Map
View

Click here to load this message in the networking platform