![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
It's quite straightforward to create a table from the first 500 results of a query, with cmd.ExecuteTable("table1",500). Is there a simple way to create a table from the second 500 results of the query, i.e. records 500-999?
Thanks James |
|
||||
|
You should add LIMIT and OFFSET to your query:
Code:
cmd.CommandText = "SELECT * FROM table WHERE... ORDER BY... LIMIT 500 OFFSET 500"
cmd.ExecuteTable("table1",0)
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error with ExecuteTable | N1c0_ds | Questions & Help Needed | 1 | 10-22-2008 12:49 AM |
| cmd.ExecuteTable("table1",500) error | dennishea | Questions & Help Needed | 3 | 06-15-2008 04:17 PM |
| SQL - ExecuteTable - change colname | michael2007 | Questions & Help Needed | 2 | 04-17-2008 07:30 AM |