0

我的表中有 20 万个数据。我只想访问 40 个数据。在这里,问题是何时触发以下查询

    select a.* from 
         (select 
               row_number() over (ORDER BY columnid1) as srno,* 
          from table 
          where 
               columnid1 between 1 and 20 
               and  columnid2 like '%A%'
               and  columnid3 between 20 and 25
         ) as a
        where a.srno>=5200 and a.srno<=5240

然后在 12 秒后给出结果。

如何提高我的访问速度?

4

0 回答 0