Re: maintaining sequences
От | Shaun Thomas |
---|---|
Тема | Re: maintaining sequences |
Дата | |
Msg-id | Pine.LNX.4.33L2.0109131447060.10387-100000@hamster.lee.net обсуждение исходный текст |
Ответ на | maintaining sequences (roypgsqlgen@xemaps.com) |
Список | pgsql-general |
On Thu, 13 Sep 2001 roypgsqlgen@xemaps.com wrote: > Or I guess I'm asking if I can add a default sequence into a column > after I've created the table and added data to it? The easiest way to do this is just create your table as normal, do your data load (it will ignore the sequence if you're manually setting the identity columns) and then drop and recreate the sequence with the starting value you want. See, easy. ^_^ -- +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | Shaun M. Thomas INN Database Programmer | | Phone: (309) 743-0812 Fax : (309) 743-0830 | | Email: sthomas@townnews.com AIM : trifthen | | Web : hamster.lee.net | | | | "Most of our lives are about proving something, either to | | ourselves or to someone else." | | -- Anonymous | +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
В списке pgsql-general по дате отправления: