Re: Add a ROWCOUNT to the output of a select.

Поиск
Список
Период
Сортировка
От Marcin Stępnicki
Тема Re: Add a ROWCOUNT to the output of a select.
Дата
Msg-id 179149fe0805140148r49c2c5a3o5f944ce49b81049e@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Add a ROWCOUNT to the output of a select.  (Harald Fuchs <hari.fuchs@googlemail.com>)
Список pgsql-sql
On Wed, May 14, 2008 at 10:40 AM, Harald Fuchs
<hari.fuchs@googlemail.com> wrote:
> I think a sequence is much simpler:
>
> create temp sequence tmp;
> select nextval('tmp') as rownum,
>    contactdate
> from
>    myTable
> where
>    contactdate > '2007-06-30 23:59:59'
> order by
>    contactdate;

I used to do it this way myself, but the solution in my previous post
is really worth the trouble.


В списке pgsql-sql по дате отправления:

Предыдущее
От: Harald Fuchs
Дата:
Сообщение: Re: Add a ROWCOUNT to the output of a select.
Следующее
От: "Robins Tharakan"
Дата:
Сообщение: Re: Add a ROWCOUNT to the output of a select.