摘要:
--当天的0点0分0秒,当天的23点59分59秒 select convert(datetime,convert(varchar(10),getdate(),120)) as a, dateadd(ss,-1,dateadd(dd,1,convert(datetime,convert(varchar 阅读全文
摘要:
查看执行时间1 show profiles;2 show variables;查看profiling 是否是on状态;3 如果是off,则 set profiling = 1;4 执行自己的sql语句;5 show profiles;就可以查到sql语句的执行时间; 查看操作了多少行在sql语句前面 阅读全文