Re: select unique items in db
От
a
Тема
Re: select unique items in db
Дата
Msg-id
1158209242.628064.303100@m73g2000cwd.googlegroups.com
Ответ на
Re: select unique items in db (Stijn Vanroye)
Список
Дерево обсуждения
Re: select unique items in db "a" <a@tempinbox.com>
Re: select unique items in db Stijn Vanroye <s.vanroye@easytowork.nl>
Re: select unique items in db "a" <a@tempinbox.com>
Re: select unique items in db Stijn Vanroye <s.vanroye@easytowork.nl>
this doesnt work
SELECT DISTINCT on link *, rank(ts_vec, to_tsquery('default', $qtxt))
FROM feed_entry WHE RE ts_vec @@ to_tsquery('default', $qtxt) ORDER
BY rank(ts_vec, to_tsquery('default', $qtxt)) DESC LIMIT 5 OFFSET 0
can you tell me how to get the DISTINCT elements in LINK
thanks
Stijn Vanroye wrote:
> a schreef:
> > "select unique id" - i found this line in google search
> > but i want to make
> > select * as unique
> >
> > select unique * is
> > or select distinct
> >
> > pls point out how to select unique items from a list of million items
> >
> Maybe
> select distinct from ...
> or
> select distinct on (field1,field2) from ... ?
>
> Regards,
>
> Stijn.
В списке pgsql-general по дате отправления