12 2018 档案

摘要:分析比较执行时间计划读取情况 1. 查看执行时间和cpu set statistics time on select * from Bus_DevHistoryData set statistics time off 执行后在消息里可以看到 2. 查看查询对I/O的操作情况 set statisti 阅读全文
posted @ 2018-12-07 10:43 天气不错写代码 阅读(2374) 评论(0) 推荐(1)
摘要:一、sql server日期时间函数Sql Server中的日期与时间函数 1. 当前系统日期、时间 select getdate() 2. dateadd 在向指定日期加上一段时间的基础上,返回新的 datetime 值 例如:向日期加上2天 select dateadd(day,2,'2004- 阅读全文
posted @ 2018-12-07 10:41 天气不错写代码 阅读(262) 评论(0) 推荐(0)