Re: Sorting and then...

Поиск
Список
Период
Сортировка
От Jason Earl
Тема Re: Sorting and then...
Дата
Msg-id 20010410173213.72791.qmail@web10006.mail.yahoo.com
обсуждение исходный текст
Ответ на Sorting and then...  (Wei Weng <wweng@kencast.com>)
Список pgsql-sql
SELECT name FROM test ORDER BY id DESC LIMIT 10;

Take care,
Jason


--- Wei Weng <wweng@kencast.com> wrote:
> Suppose I have a table 
> 
> create table test
> (
>         id integer,
>         name text
> );
> 
> And I want to get the names of the largest 10 "id"s.
> How can I do that in 
> sql?
> 
> Thanks!
> 
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 2: you can get off all lists at once with the
> unregister command
>     (send "unregister YourEmailAddressHere" to
majordomo@postgresql.org)


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/


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

Предыдущее
От: Najm Hashmi
Дата:
Сообщение: \i command
Следующее
От: Mark Butler
Дата:
Сообщение: Semantics of Typed Numeric Constants