How can I return the first 100 rows of a table without having to read all of its records?
My table has 4 rows of rows, and I'm having trouble trying to return only its first 100 rows, because every time I use ROWNUM, sgbd reads the entire table (I think, since it takes hours to finish routing). query).
Example:
SELECT ACCT FROM ACCT_CUST AC WHERE AC.TYPE != "DT" AND ROWNUM < 100;
Oracle does not have TOP or Limit, so I do not know how to use rownum to get the rows without reading the entire table