摘要: -- -- 删除base里冗余的数据 --UPDATE dbo.N_Order_ServiceLog SET IsDel = 1 WHERE OrderId IN ( SELECT OrderId FROM( SELECT ROW_NUMBER() OVER(PARTITION BY bs.Phon 阅读全文
posted @ 2018-04-26 14:07 乔胖胖 阅读(444) 评论(0) 推荐(0) 编辑
摘要: with temptb AS(SELECT sl.CompanyID,info.BID FROM dbo.TableXXXXX slLEFT JOIN dbo.Tableinfo infoON info.ID = sl.CompanyID WHERE sl.ServiceId = 8 AND sl. 阅读全文
posted @ 2018-04-26 14:00 乔胖胖 阅读(1432) 评论(0) 推荐(0) 编辑