| From: | "Tomasz Myrta" <jasiek(at)klaster(dot)net> |
|---|---|
| To: | Gary Stainburn <gary(dot)stainburn(at)ringways(dot)co(dot)uk>, pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: sort / limit / range problem |
| Date: | 2003-03-05 07:47:24 |
| Message-ID: | 20030305154724.M33531@klaster.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
> Hi folks,
>
> I've got a glossary table that I'm trying to render to HTML.
> However, I've got a problem when using order by and limit. Below
> is an example of a psql session showing my problem. Anyone got any
> reasons why the last select misses 'Driver'?
>
Everything is ok. Without order by, limit has undeterminated result. It is
described in Postgresql documentation.
Try this:
select glterm from glossary where glterm > 'Driving Wheels'
order by glterm limit 1
select glterm from glossary where glterm > 'Draw Bar'
order by glterm limit 1
Regards,
Tomasz Myrta
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Christoph Haller | 2003-03-05 08:38:06 | Re: Insert multiple Rows |
| Previous Message | patrick | 2003-03-05 01:39:42 | upgrading from 7.1.2 to 7.3.2 |