Re: [SQL] SELECT TOP _x_ ??

Поиск
Список
Период
Сортировка
От Chris Bitmead
Тема Re: [SQL] SELECT TOP _x_ ??
Дата
Msg-id 371FDC3A.5A8BA9FF@bigfoot.com
обсуждение исходный текст
Ответ на SELECT TOP _x_ ??  ("Justin Long" <justinlong@strategicnetwork.org>)
Список pgsql-sql
Chairudin Sentosa wrote:
> 
> I tried this, did not work.
> 
> ibs=> select * from ibs_subscriber limit 5;
> ERROR:  parser: syntax error at or near "5"
> 
> Regards,
> Chai
> 
> PS: PostgreSQL 6.5 

Which snapshot?

> 
> Chris Bitmead wrote:
> 
> > Justin Long wrote:
> > >
> > > In Microsoft SQL Server you could issue a command
> > >
> > >         SELECT TOP 5 * FROM database...
> >
> > SELECT * FROM TABLE LIMIT 5;
> >
> > You may have to be running 6.5, not sure.
> >
> > --
> > Chris Bitmead
> > http://www.bigfoot.com/~chris.bitmead
> > mailto:chris.bitmead@bigfoot.com


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

Предыдущее
От: Chris Bitmead
Дата:
Сообщение: Re: [SQL] Finding the "most recent" rows
Следующее
От: Chairudin Sentosa
Дата:
Сообщение: Re: [SQL] Finding the "most recent" rows