Re: Finding Max Value in a Row

Поиск
Список
Период
Сортировка
От Carlos Mennens
Тема Re: Finding Max Value in a Row
Дата
Msg-id CAAQLLO5x8_kxpM8epdqjh7UPG7tTX8i0w04fODZd1F+8bKdr0A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Finding Max Value in a Row  (Thomas Kellerer <spam_eater@gmx.net>)
Ответы Re: Finding Max Value in a Row  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-sql
On Fri, May 11, 2012 at 3:44 PM, Thomas Kellerer <spam_eater@gmx.net> wrote:
> Use this:
>
> alter table users
>    alter column users_id type integer using to_number(users_id, '99999');
>
> (Adjust the '99999' to the length of the char column)

When you wrote "Adjust the '99999' to the length of the char column,
do you mean change '99999' to '312' if my last used maximum value was
312? So the next sequence primary key value would be '313', right?


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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Finding Max Value in a Row
Следующее
От: Carlos Mennens
Дата:
Сообщение: Re: Finding Max Value in a Row