Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Querying Select Number of Rows

by Arguile (Hermit)
on Jun 05, 2001 at 03:52 UTC ( #85665=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ...
    ORDER BY field1, field2
    ...
    -- implicit OFFSET (MySQL)
    
    LIMIT 10,1
    
  2. or download this
    ...
    FROM table1 a, table2 b
    WHERE rownum <= 10
    ...
    
  3. or download this
    SELECT TOP 10 field1, field2, ... ,fieldn
    FROM ...
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://85665]
help
Chatterbox?
[choroba]: I can't say "Good morning", getting the "Whoa cowboy"
[marto]: the same thing just happened to me :P
Discipulus our orders office is a crow of idiots...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2017-01-19 10:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.