General information
Forum:
Microsoft SQL Server
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only