你的数据库经过多次的增删改之后,存储空间就会有很多的空隙
插入时,数据库会优先选择数据不充足的块中进行存储
如果前面的数据库都比较充足的时候才会考虑重新打开一个新的数据库进行存储。

解决方案 »

  1.   

    插入的时候,保存插入的时间,查询的时候按时间排序就是了
      

  2.   

    select * from Orders o,Product p,Merchant m where o.o_account='984133' and m.m_id=p.pro_merchantid and p.pro_id=o.o_productid and o.o_id>0 and ROWNUM<=10 order by o.o_id
    select * from Orders where o_account='984133' order by o_id 我想让第二条sql查出来的值,然后让第一条从第二条sql查出来的值出筛选
    应该怎么写  求教大神!