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 > Data Access, Manipulation & Batch Languages > ANSI SQL > how to fetch subset of records

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-08-04, 04:10
matsalim matsalim is offline
Registered User
 
Join Date: Jan 2004
Posts: 1
Wink how to fetch subset of records

Dev Enviro: Apache, PHP, MySQL, AS400 via ODBC, Adodb

I searched the thread but unable to find answer for this question.

What is the correct SQL string to get 10 rows from a table in AS400?

In MySQL can use LIMIT, or use wrapper Adodb SelectLimit function. But sometimes I need to query a table using the ODBC connection to the AS400 without using the wrapper.

Thanks for any help.
Reply With Quote
  #2 (permalink)  
Old 01-08-04, 09:12
olerag olerag is offline
Registered User
 
Join Date: Aug 2003
Posts: 40
...where ROWNUM < 11
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On