Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Counting all records but selecting only a few

by NetWallah (Canon)
on Apr 05, 2018 at 05:54 UTC ( [id://1212336]=note: print w/replies, xml ) Need Help??


in reply to Counting all records but selecting only a few

SELECT COUNT(*) from <table>;
That query is typically VERY fast.

I suggest you do that first, to get the count, then SELECT your last 500.

                Memory fault   --   brain fried

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1212336]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-25 14:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found