Question about T-SQL# Database - 数据库
o*s
1 楼
We have the following statement, which SQL Server does not
accept due to grammar problem:
declare @product varchar(32)
select @product = "product"
select * from @product
Is there any way we can select the record from a table whose
name is provided using a variable?
Thanks a lot.
accept due to grammar problem:
declare @product varchar(32)
select @product = "product"
select * from @product
Is there any way we can select the record from a table whose
name is provided using a variable?
Thanks a lot.