2009年9月25日
摘要: insert opendatasource('sqloledb','data source=202.119.202.222;User ID=sa;Password=123').HB_K.dbo.safe_mubanbiao values (1,'33') 阅读全文
posted @ 2009-09-25 23:55 D.Henry 阅读(322) 评论(0) 推荐(0) 编辑
摘要: SELECT SUM(DayFact) AS jituangongsi, SUM(CASE WHEN kuangid = 2 THEN DayFact ELSE 0 END) AS kuangchanliang, yueFROM (SELECT KM_KtjcDay.DayFact, AQ_ServerName.DiffDepartmentName AS kuangming, AQ_Ser... 阅读全文
posted @ 2009-09-25 23:00 D.Henry 阅读(263) 评论(0) 推荐(0) 编辑
摘要: SUM(CASE WHEN kuangid = 2 THEN DayFact ELSE 0 END) 阅读全文
posted @ 2009-09-25 22:50 D.Henry 阅读(397) 评论(0) 推荐(0) 编辑