Re: [GENERAL] smallint to bigint

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: [GENERAL] smallint to bigint
Дата
Msg-id Pine.BSF.4.21.0011140922080.67853-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на smallint to bigint  (Mickaël Jouanne <m.jouanne@apr-job.com>)
Список pgsql-novice
About all you can do is make a new table with the structure
you want and use insert into to copy the data and then alter
table to rename the tables in place.  (One note though, if
you're trying to go from int2 to int8 it's kind of unhappy
for one step, you'll need to promote to int4 and then to int8
in the select).

Stephan Szabo
sszabo@bigpanda.com

On Tue, 14 Nov 2000, [iso-8859-1] Micka�l Jouanne wrote:

> Hello !
>
> I have a table with :
>
>  prixandern | smallint     |
>  prixcvdern | smallint     |
>
> but i want to change smallint to bigint without droping the table.
>
> How can i make that ?


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [GENERAL] smallint to bigint
Следующее
От: Bill Morrow
Дата:
Сообщение: converting seconds since epoch to time string