1. 
    --声明table
   declare @tb table(ID int)
    --插入数据
   insert @tb select 1
    --查询
   select * from @tb2. --用动态SQL
   declare @colName varchar(20)
   set @colName='ID'
   exec('create table tb('+@colName+' int)')