Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using variables to represent table name
Message
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Using variables to represent table name
Miscellaneous
Thread ID:
00450290
Message ID:
00450290
Views:
71
Is it possible to use variable to represent table name.
Like this:

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

Giedrius
Giedrius
Next
Reply
Map
View

Click here to load this message in the networking platform