Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro Substitution
Message
De
22/05/2003 14:32:11
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Macro Substitution
Divers
Thread ID:
00791817
Message ID:
00791817
Vues:
53
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform