Re: Seeking quick way to clone a row, but give it a new pk.

Поиск
Список
Период
Сортировка
От Greg Sabino Mullane
Тема Re: Seeking quick way to clone a row, but give it a new pk.
Дата
Msg-id 58d5b57212154308c59c84976e153c53@biglumber.com
обсуждение исходный текст
Ответ на Seeking quick way to clone a row, but give it a new pk.  (Bryce Nesbitt <bryce1@obviously.com>)
Список pgsql-sql
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160


> I need to create some nearly identical copies of rows in
> a complicated table.
>
> Is there a handy syntax that would let me copy a existing row,
> but get a new primary key for the copy?

http://people.planetpostgresql.org/greg/index.php?/archives/45-Making-a-copy-of-a-unique-row.html

- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200702081114
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

iD8DBQFFy0xcvJuQZxSWSsgRA8vFAJsHMFhngWGCSSi8okO9j9H0++hajgCgrUz+
aKTnhaHuQHv1qetAmPt/ufM=
=HDF8
-----END PGP SIGNATURE-----




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Odd PL/PgSQL Error -- relation "X" does not exist when using index expression
Следующее
От: "Ezequias Rodrigues da Rocha"
Дата:
Сообщение: Open a Transaction