我正在处理显示组件的 JSF 页面。我想问你如何优化这个 SQL 查询。我在家,无法访问 Oracle 服务器来测试查询:
SqlStatementSmall = "SELECT a.* FROM (SELECT b.*, rownum rn "
+ " FROM (select y.name, y.serialnumber, y.location, y.type, y.powerwatt,"
+ " y.dateadded, y.datedeployed, y.weightkg, y.uform, y.zonecage"
+ " FROM component x, componentstats y where x.componentstatsid = y.componentstatsid"
+ " and y.componenttypeid = 1122 ORDER BY %s %s) b"
+ " WHERE rownum <= ?) a"
+ " WHERE rn > ?";
谢谢您的帮助!