摘要: 这里的in后面的句子可以理解为or拼接,简单举例即 in (9566,9839,null)可以等价于mgr=9566 or mgr=9839 or mgr=null, not in (9566,9839,null)可以等价于not(mgr=9566 or mgr=9839 or mgr=null)或 阅读全文
posted @ 2019-01-03 22:39 随风而逝,只是飘零 阅读(1220) 评论(0) 推荐(0) 编辑
摘要: 执行效果: 1. count(1) and count(*) 当表的数据量大些时,对表作分析之后,使用count(1)还要比使用count(*)用时多了! 从执行计划来看,count(1)和count(*)的效果是一样的。 但是在表做过分析之后,count(1)会比count(*)的用时少些(1w以 阅读全文
posted @ 2019-01-03 22:35 随风而逝,只是飘零 阅读(3919) 评论(0) 推荐(1) 编辑