Re: Sorting and then...

Поиск
Список
Период
Сортировка
От Roberto Mello
Тема Re: Sorting and then...
Дата
Msg-id 20010409204057.A3626@cc.usu.edu
обсуждение исходный текст
Ответ на Sorting and then...  (Wei Weng <wweng@kencast.com>)
Список pgsql-sql
On Mon, Apr 09, 2001 at 07:22:52PM -0400, Wei Weng wrote:
> And I want to get the names of the largest 10 "id"s. How can I do that in 
> sql?
What do you mean by "largest"? Largest id? "largest" text string? If
it's the id you can do:
select max(id) from <table>;
-Roberto
-- 
+----| http://fslc.usu.edu USU Free Software & GNU/Linux Club |------+ Roberto Mello - Computer Science, USU -
http://www.brasileiro.net      http://www.sdl.usu.edu - Space Dynamics Lab, Developer    
 
Backup is for whimps!


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

Предыдущее
От: Mark Butler
Дата:
Сообщение: Inheritance Semantics
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Inheritance Semantics