declare @sql varchar(1000)标签:set,varchar,很爽,SQL,PRIMARY,动态创建,sql,为表 From: https://blog.51cto.com/u_14650780/5998746
set @sql = ' create table tb_'
+ convert(varchar(8),dateadd(dd,-1,getdate()),112)
+ '(字段内容) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]'
exec(@sql)
做好后 加入SQL代理,每天执行,很爽