declare @Date1 SmallDateTime
select @Date1='2003-8-1' --日期要用''括起来
exec('select *
into temptable
from table1
where StaDate='''+@SDate1+'''') --这里也是要做同样处理.
drop table temptable
select @Date1='2003-8-1' --日期要用''括起来
exec('select *
into temptable
from table1
where StaDate='''+@SDate1+'''') --这里也是要做同样处理.
drop table temptable
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货