Limiting the number of records in Execute Query

From: Raj Shooj-Q16466 <shooj(at)motorola(dot)com>
To: "'pgsql-odbc(at)postgresql(dot)org'" <pgsql-odbc(at)postgresql(dot)org>
Subject: Limiting the number of records in Execute Query
Date: 2003-09-12 11:11:09
Message-ID: 653138C25D8AD6118292000347080A370635B9BF@zin05exm02.corp.mot.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hello,
I would like to know how to retrieve large amount of records in small segments.

I am retrieving 1 million records by executing the sql query
SELECT * FROM myTable ORDER BY sub_id LIMIT 1000 OFFSET <num>;
in a loop, incrementing <num> every time by 1000.

Is there any sql-odbc api which does the same(a variant of SQLExecute)? An api which enables to scroll along the records and execute the query?

Thanks,
Shooj.

Browse pgsql-odbc by date

  From Date Subject
Next Message Raj Shooj-Q16466 2003-09-12 12:19:56 Limiting the number of records in Execute Query
Previous Message Thomas LeBlanc 2003-09-11 22:13:57 DSN-less connection...