| От | Raymond O'Donnell |
|---|---|
| Тема | Re: table sequence, renumbering |
| Дата | |
| Msg-id | 4E8B2E50.8000702@iol.ie обсуждение исходный текст |
| Ответ на | table sequence, renumbering ("J.V." <jvsrvcs@gmail.com>) |
| Список | pgsql-general |
On 04/10/2011 16:51, J.V. wrote:
> What is the absolute fastest way to populate a primary key / id column
> from a named db sequence (disabled constraints and want to renumber the
> primary key / id column from sequence.
>
> cannot use auto inc or serial column because need to use generic
> hibernate mapping files for multiple DB's in the end, but want a stored
> proc to simple reorder a primary key int column pulling from a named
> sequence, if there is a single command.
Something like this? -
update my_table set my_column = nextval('my_sequence');
Ray.
--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера