Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I see only one possible solution for you - you should select your data by primary key. The DBMS will return data ordered by primary key. You should remember key with "maximum value" and at next time you should add condition PK > "maximum value", where PK is primary key. This will force DBMS to return to you next package of data, size of the package you can regulate by "number of lines" as previously </p> <p><strong>[EDIT]</strong><br> I cant provide code sample because of I actually never work with DB in C#. But this fact didnt eliminate that DBMS always sorts table primary key. For example you have table with next columns: </p> <ul> <li>ID (int) [PK]</li> <li>DATA (CHAR255)</li> </ul> <p>In this table ID is a primary key. So you may do simething like below (pesudo code): </p> <pre><code>&lt; declaration of array which will hold you data from DB &gt; - intTab SELECT * FROM &lt; your DB tab &gt; UP TO 5000 ROWS INTO CORRESPONDING FIELDS OF TABLE intTab WHERE &lt; your conditions &gt; AND ID &gt; 0. </code></pre> <p>This <code>SELECT</code> would return to you "first" 5000 rows from table. "first" means first rows in index by primary key. To select next 5000 rows you should do: </p> <pre><code>var maxID = &lt; max id from intTab &gt; SELECT * FROM &lt; your DB tab &gt; UP TO 5000 ROWS INTO CORRESPONDING FIELDS OF TABLE intTab WHERE &lt; your conditions &gt; AND ID &gt; maxID. </code></pre> <p>This select will return "next" 5000 rows due <code>ID &gt; maxID</code> condition.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload