random rows
From: Ing. Branislav Gerzo (2ge_at_2ge.us)
Date: 02/14/05
- Next message: Samuel Gold: "RE: random rows"
- Previous message: Robert: "Re: finding and inserting"
- Next in thread: Samuel Gold: "RE: random rows"
- Maybe reply: Samuel Gold: "RE: random rows"
- Reply: Chris Jacobson: "Re: random rows"
- Reply: Mladen Gogala: "Re: random rows"
- Maybe reply: Ing . Branislav Gerzo: "Re: random rows"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 14 Feb 2005 16:34:49 +0100 To: dbi-users@perl.org
Hi all,
I have one simple question - how I can return 10 random rows
from select?
For example we have select:
Select name, street, date
from people
order by date desc
limit 0,100
Now, I want return 10 random peoples. How to do it ? It is possible
via SQL statement, or I have to care about that in perl code ? If yes,
could you write me best method ?
Thanks a lot.
- Next message: Samuel Gold: "RE: random rows"
- Previous message: Robert: "Re: finding and inserting"
- Next in thread: Samuel Gold: "RE: random rows"
- Maybe reply: Samuel Gold: "RE: random rows"
- Reply: Chris Jacobson: "Re: random rows"
- Reply: Mladen Gogala: "Re: random rows"
- Maybe reply: Ing . Branislav Gerzo: "Re: random rows"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]