Re: Reordering a table

Поиск
Список
Период
Сортировка
От Howard Cole
Тема Re: Reordering a table
Дата
Msg-id 4D63FD66.1060907@selestial.com
обсуждение исходный текст
Ответ на Re: Reordering a table  (Vibhor Kumar <vibhor.kumar@enterprisedb.com>)
Список pgsql-general
On 22/02/2011 5:18 PM, Vibhor Kumar wrote:
> If you are using PG 8.4 then you can try something with row_number as
> given below:
>   select id,stamp, row_number() over(order by stamp) from test;
>
> Or
>
> Create table test1 as select row_number() over(order by stamp) as id, stamp from test;
>
> Thanks&  Regards,
> Vibhor Kumar
>
I have not come across that that function before. I'll take a closer look.

Many thanks to all for the quick responses.

Howard.

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

Предыдущее
От: "David Johnston"
Дата:
Сообщение: Re: Reordering a table
Следующее
От: Ralph Smith
Дата:
Сообщение: EXECUTE of a 'create table' string is not happening