Limiting the number of records in Execute Query - Mailing list pgsql-odbc

From Raj Shooj-Q16466
Subject Limiting the number of records in Execute Query
Date
Msg-id 653138C25D8AD6118292000347080A370635B9BF@zin05exm02.corp.mot.com
Whole thread Raw
List 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
recordsand execute the query? 

Thanks,
Shooj.





pgsql-odbc by date:

Previous
From: "Noel R. Villamor"
Date:
Subject: which odbc driver to use
Next
From: MarkRenton@t-online.de (Mark Renton)
Date:
Subject: how to compile the odbc source?