Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


SQLite ExecuteTable


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-20-2008, 04:34 AM
Junior Member
 
Join Date: Mar 2008
Location: Thailand
Posts: 45
Default SQLite ExecuteTable

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
Reply With Quote
  #2 (permalink)  
Old 07-20-2008, 06:04 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

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)
See this page for more information: SQLite Query Language: SELECT
Reply With Quote
  #3 (permalink)  
Old 07-20-2008, 11:21 AM
Junior Member
 
Join Date: Mar 2008
Location: Thailand
Posts: 45
Smile Ta

Thanks, Erel - that's just what I needed!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 08:35 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0