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 > Adabas > Does Adabas support LIMIT

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-24-04, 19:50
ffert ffert is offline
Registered User
 
Join Date: Mar 2004
Location: France
Posts: 10
Question Does Adabas support LIMIT

Hi,

I'm creating a software, and I have a dilemn... To check it I use MySQL, but I want my software to use a lot of kind of différent DB (oracle, DB2, informix, etc...)

But I have to know :

Does Adabas support something like that (and if not how to do it) :

SELECT fields FROM Table LIMIT 0,500

????

thank you very much for a quick answer, because All development depend of the answer !!!

thank you,
bye.
__________________
DataBase, Delphi, php, Yes, I like....
Reply With Quote
  #2 (permalink)  
Old 07-09-04, 09:52
benboa benboa is offline
Registered User
 
Join Date: Jul 2004
Posts: 1
It seems that Adabas have RowNum

hi, have the same problem has u !
i've seen in the referencial of adabas, that it contains the predicate : rownum

<rownum predicate>
Function
limits the number of rows of a result table.
Format
<rownum predicate> ::=
ROWNUM < <rownum spec>
| ROWNUM <= <rownum spec>
<rownum spec> ::=
<unsigned integer>
| <parameter spec>


But it don't work :
---> odbc_errormsg :
[SOFTWARE AG][ODBCLIB A][ADABAS]Column not found;-4005 UNKNOWN COLUMN NAME:ROWNUM.


does anyone has already use it ?
Please help
Reply With Quote
  #3 (permalink)  
Old 07-09-04, 14:23
ffert ffert is offline
Registered User
 
Join Date: Mar 2004
Location: France
Posts: 10
How to use RowNUM

Perhaps we have to write something like this :

SELECT * FROM table WHERE (ROWNUM > 500) and (ROWNUM < 1000)

I haven't test it yet.. but.. it is perhaps the right solution...

Thanks bye..
__________________
DataBase, Delphi, php, Yes, I like....
Reply With Quote
Reply

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

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