这个实例里面的表结构参见《建表,插入标识列,自动生成id》一文http://www.2cto.com/database/201503/385727.html
use yuyongTest
declare @tabName varchar(100);
set @tabName='student';
exec('select * from '+@tabName);
?
这个实例里面的表结构参见《建表,插入标识列,自动生成id》一文http://www.2cto.com/database/201503/385727.html
use yuyongTest
declare @tabName varchar(100);
set @tabName='student';
exec('select * from '+@tabName);
?