补充用的数据库是oracle 8i

解决方案 »

  1.   

    用查询过滤掉不可能为customerid='2500511510'的数据,在来
    select * from read_cnt where customerid='2500511510'
    order by customerid
      

  2.   

    1、如果是主键的话 可以用定位的方法定位 然后循环next到不等为止
    这种方法比select要快 我试过
    2、把该库按customerid分成多个库
      

  3.   

    用SetRange它和FindKey一样都是建立在索引的基础上的
    而过滤和locate都是无需索引的也就是说它们是另一种实现机制
      

  4.   

    select * from read_cnt where customerid='2500511510'
    order by customerid这句语句本身就有点问题,
    应该修改为:
    select * from read_cnt where customerid='2500511510'并且customerid这个字段需要索引