Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using variables to represent table name
Message
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Using variables to represent table name
Divers
Thread ID:
00450290
Message ID:
00450290
Vues:
72
Is it possible to use variable to represent table name.
Like this:

DECLARE @TableName varchar(20)
SET @TableName = "Customers"
SELECT * FROM @TableName

Giedrius
Giedrius
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform