limit

From: "Paul Ottar Tornes" <critical(at)tiscali(dot)no>
To: "psql" <pgsql-general(at)postgresql(dot)org>
Subject: limit
Date: 2002-10-31 23:39:22
Message-ID: 00b601c28136$bd878eb0$0400000a@critical
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

How come
$query = "SELECT id, tittel, dato, kilde, referat FROM nyheter order by id desc limit 0,10";
Does not display any posts in my news script, but
$query = "SELECT id, tittel, dato, kilde, referat FROM nyheter order by id desc limit 10";
Shows the last 10.?

And:

How come
$query = "SELECT id, tittel, dato, kilde, referat FROM nyheter order by id desc limit 10,20";
Displays posts 5 to 14, and not 10 to 20?!

Regards

Paul Ottar Tornes

Responses

  • Re: limit at 2002-11-01 10:19:02 from Jens-Christian Skibakk

Browse pgsql-general by date

  From Date Subject
Next Message Joseph Shraibman 2002-11-01 00:57:58 explain math question
Previous Message scott.marlowe 2002-10-31 22:46:59 Re: [GENERAL] my.cnf to postgresql.conf Conversion