摘要: DECLARE @date CHAR(10)SET @date = '2010-12-16'SET @date = convert(varchar(10),getdate(),120)SELECT SUN = MAX(CASE WHEN a.xq = 1 THEN CONVERT(CHAR(2),a.number) ELSE '' END), MON = MAX(CASE WHEN a.xq = 2 THEN CONVERT(CHAR(2),a.number) ELSE '' END), TUE = MAX(CASE WHEN a.xq = 3 阅读全文
posted @ 2011-07-12 18:29 为乐而来 阅读(1821) 评论(0) 推荐(1) 编辑