摘要: select aa.*, ROW_NUMBER() OVER(PARTITION BY la04_id ORDER BY sectionno ) 排序 from #temp11 aa 描述:根据la04_id进行分组,然后在组内根据sectionno 进行排序。 结果: 阅读全文
posted @ 2021-08-04 17:40 顺时针KEY 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 方法一 --查看sqlserver被锁的表:select request_session_id spid,OBJECT_NAME(resource_associated_entity_id) tableName from sys.dm_tran_locks where resource_type=' 阅读全文
posted @ 2021-08-04 17:12 顺时针KEY 阅读(7031) 评论(0) 推荐(0) 编辑