If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Pervasive.SQL > Using the TOP syntax

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-06-03, 20:01
adamski adamski is offline
Registered User
 
Join Date: Sep 2003
Posts: 8
Using the TOP syntax

Was just wondering if anyone knew how to execute a pervasive statement with a syntax similar to a mysql query of

SELECT * FROM table LIMIT x,y

i want to query starting from row x with a limit of y results. I looked into TOP but it seems it will only limit the number of results and not the starting row.
Reply With Quote
  #2 (permalink)  
Old 10-06-03, 20:56
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
Re: Using the TOP syntax

There is no LIMIT syntax in Pervasive.SQL. You can, if you're using V8, us the TOP statement and a WHERE clause to set the start row. Something similar to:
SELECT top X FROM table WHERE field=Y
Also, if you really need this syntax contact Pervasive to tell them you need it.
Hope this helps.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #3 (permalink)  
Old 10-07-03, 00:14
adamski adamski is offline
Registered User
 
Join Date: Sep 2003
Posts: 8
ok no worries. thanks for that.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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