Re: in-date news items

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: in-date news items
Дата
Msg-id 20020312102311.K65916-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Re: in-date news items  (Gary Stainburn <gary.stainburn@ringways.co.uk>)
Список pgsql-sql
> Thanks for that Ian, worked a treat.  However, can someone tell me why
>
> select n.ntimestamp, n.nmid from news n where n.ntimestamp > current_time -
> interval '5 minutes';
>
> works while
>
> select n.ntimestamp, n.nmid, m.mfname, m.mlname
>   from news n, members m
>   order by ntimestamp desc
>   limit 1
>   where (n.nmid = m.mid) and
>      (n.ntimestamp > current_time - interval '5 minutes');
>
> has a parse error at or near "where"

The where clause should go between the from and order by.




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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: in-date news items
Следующее
От: Daniel Ordobas Bortolas
Дата:
Сообщение: simple problem