03 2022 档案

摘要:使用MySQL将varchar转换成float是报错 执行语句: SELECT CAST(2000 AS FLOAT) as result 错误信息: 1064 - You have an error in your SQL syntax; check the manual that corresp 阅读全文
posted @ 2022-03-17 15:36 Incercadi 阅读(1034) 评论(0) 推荐(0) 编辑
摘要:获取当前系统时间并从中依次取出对应的年月日和时间和周 select year(now()) as year; select month(now()) as month; select day(now()) as day; select time(now()) as time; SELECT YEAR 阅读全文
posted @ 2022-03-17 14:29 Incercadi 阅读(1836) 评论(0) 推荐(0) 编辑
摘要:-- 查询死锁 select request_session_id spid, OBJECT_NAME(resource_associated_entity_id) tableName from sys.dm_tran_locks where resource_type='OBJECT' order 阅读全文
posted @ 2022-03-14 16:15 Incercadi 阅读(1153) 评论(0) 推荐(0) 编辑