Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro Substitution
Message
 
 
To
22/05/2003 14:32:11
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00791817
Message ID:
00791828
Views:
24
See How to return a value from dynamicaly executed T-SQL code FAQ #8130

>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.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform