Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Limit results of a DBI query

by Ryszard (Priest)
on Jan 29, 2003 at 07:08 UTC ( #230872=note: print w/replies, xml ) Need Help??


in reply to Limit results of a DBI query

A neat trick in Oracle (I dont know if MS-SQL supports "rownum" (or inline views)) is
select column1 from ( select column1, rownum from table 1 ) where rownum > ? and rownum < ?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://230872]
help
Chatterbox?
Discipulus global var or global war; this is the question
Discipulus desease the question..
[shmem]: Discipulus: war/peace is a question of fuel gauge position...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2017-04-29 21:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (534 votes). Check out past polls.