How Can I limit the select result ?

From: "" <mrpark(at)tinc(dot)co(dot)kr>
To: "sql" <pgsql-sql(at)postgreSQL(dot)org>
Subject: How Can I limit the select result ?
Date: 1998-07-24 01:56:02
Message-ID: 008201bdb6a6$3727bf20$316e69d2@tinc.co.kr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I want to select like this...

select * from any_table where table_field > any_no limit 10 order by
table_field DESC;

I want to select more than 1000 rows.
But, I want to view only 10 from maximum to maximum -10.

How can I ?

I want to make the search engin using Postgresql.
If more than 10000 rows, there's hard to query, I think...
Does anybody know about this ?

Please help me.

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Paulina Canas Urrutia 1998-07-24 01:58:32 returns opaque
Previous Message Vadim Mikheev 1998-07-23 19:41:23 Re: [GENERAL] Fwd: help with uniq index (fwd)