From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Jelle Ouwerkerk <jelle(at)openface(dot)ca>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: random |
Date: | 2001-03-05 21:45:37 |
Message-ID: | 200103052145.QAA04799@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > But random returns a random value from 0-1, right? How does that work
> > in ORDER BY?
>
> What's the problem? Each row gets a different random value, then we
> sort.
Oh, I see. Nifty. I am used to seeing a column name or number in ORDER
BY. Why doesn't the parser see this as a column number?
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2001-03-05 21:45:47 | Re: Optimizing Query |
Previous Message | Justin Long | 2001-03-05 21:44:51 | Re: Optimizing Query |