oracle10g/11g有没有类似9i sql analyze?

解决方案 »

  1.   


    想知道top 10的sql语句,如何获取?
      

  2.   

    TOP 10貌似SQL SERVER的语法吧
    先排序用rownum<=10呢
      

  3.   

    想知道top 10的sql语句,如何获取?主要使用伪列。rownum。
    例子:select * from (
    select t.*,rownum rn from emp t) d
    where d.rn<=10
      

  4.   

    谢谢楼上两位.
    如果我没记错的话,oracle 的SQL Analyze
    有一个运行分析执行成本最高前十位的语句.而不是rownum<10的意思.
      

  5.   

    用analyze语句产生分析数据分析表:analyze table zl_yhjbqk estimatestatistics sample 20 percent分析索引:analyze index用户资料表主键compute statistics分析列:analyze table zl_yhjbqk compute statistics forcolumns hbs_bh分析索引列:analyze table zl_yhjbqk compute statistics forall indexed columns