天下站长网
首页
web编程
图形图象
数据库
服务器
站长专区
网络技术
网页设计
认证考试
存储过程中如何将一个变量作为表格的名字
DECLARE @tn varchar(100)
SELECT @tn = 'company'
exec('SELECT * FROM '+@tn)
Published At
2006-01-01 15:00 UTC
Categories with
数据库类
Tagged with
SQLServer
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus