sql
吃瓜农
bug
展开
-
order by 比较规则
C_Flag nvarchar(MAX)select C_Flag from tName order by C_Flag没有按顺序排列如果确定C_Flag为整型字符串,可以这样select C_Flag from tName order by CAST( C_Flag as int)如果确定C_Flag含有不是整型的字符串s...原创 2019-03-14 16:37:29 · 612 阅读 · 0 评论 -
查询死锁
select request_session_id spid, OBJECT_NAME(resource_associated_entity_id) tableName from sys.dm_tran_locks where resource_type='OBJECT' 杀死死锁进程kill 354 ...原创 2019-05-10 12:20:03 · 1025 阅读 · 0 评论