同一个表中今天的数据与昨天的数据合并,并制定列
摘要:列:RecYear(int),RecMonth(int),RecDay(int),T0000,T0010,T0020,T0030,T0040..将2012-5-12的数据与2012-5-11的数据组合declare @sql as nvarchar(max)declare @selectstr as nvarchar(max)set @selectstr = 'a.RecYear,a.RecMonth,a.RecDay,'declare @i as intset @i=0while @i<=50begin--print right('0000'+cast(
阅读全文
posted @
2012-05-16 17:29
Black Bean
阅读(196)
推荐(0)