
sql2000
ygj666888
这个作者很懒,什么都没留下…
展开
-
查询优化:sql2000中的连接两个表的查询语句的执行路径对性能的影响比较
sql2000中的连接两个表的查询语句的执行路径对性能的影响 有两个表 表1 pay_itemdetail 大概 2-3百万条数据 表2 pay_builddetail 大概 55 条数据 1原语句,效率非常低,用时20秒以上 select * from pay_itemdetail with(nolock) where buildite...原创 2009-11-15 01:23:34 · 147 阅读 · 0 评论 -
公安项目的一些统计语句
-- 统计报名select sum(case WHEN aa.A0107='1' and people.applied_state='1' THEN 1 ELSE 0 END )AS appliedPassedManCount, sum(case WHEN aa.A0107='2' and people.applied_state='1' ...原创 2009-06-14 13:01:12 · 90 阅读 · 0 评论