2019年2月24日
摘要: update Babies set BirthOrder =tb.sn from Babies b1, (select ROW_NUMBER() over (partition by familyid order by BirthOrder ) as sn,id,FamilyId,BirthOrde 阅读全文
posted @ 2019-02-24 21:53 芝麻的西瓜 阅读(4950) 评论(0) 推荐(0)
摘要: 关键词 partition(分区函数[pɑː'tɪʃ(ə)n]) by 参考: https://www.cnblogs.com/sanlang/archive/2009/03/24/1420360.html http://help.finereport.com/doc-view-1763.html 阅读全文
posted @ 2019-02-24 21:41 芝麻的西瓜 阅读(281) 评论(0) 推荐(0)
摘要: var lastBaby = await _babyRepository.FirstOrDefaultAsync(); ++lastBaby.sort; -- sort原本为1 -- 最终会生成一条语句更新sort字段 exec sp_executesql N'SET NOCOUNT ON;UPDA 阅读全文
posted @ 2019-02-24 21:15 芝麻的西瓜 阅读(150) 评论(0) 推荐(0)