-2

I have PHP + Oracle query like this :

$query_pag_data = "SELECT P.FORM_NO, P.MODEL_NO, P.PRODUCTION_STATUS, P.REMARKS, P.DATE_ADDED, P.TIME, P.QTY_PLAN, M.MODEL_NO, M.MODEL_NAME
                    FROM SEIAPPS_PRODUCTION_STATUS P, SEIAPPS_MODEL M
                    WHERE P.MODEL_NO = M.MODEL_NO ORDER BY P.DATE_ADDED DESC, P.TIME LIMIT $start, $per_page";

When I tried to search the problem, everyone said the problem is in LIMIT cant used in oracle. How can I use LIMIT in ORACLE ?

Please advice.

a_horse_with_no_name
  • 440,273
  • 77
  • 685
  • 758
Asean Jazz
  • 115
  • 1
  • 2
  • 14

1 Answers1

0

Add a condition with where clause such as "AND rownum <= 500"