Re: Easy way to change table schema?

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: Easy way to change table schema?
Дата
Msg-id 46BC846D.6010109@commandprompt.com
обсуждение исходный текст
Ответ на Easy way to change table schema?  ("Chris Hoover" <revoohc@gmail.com>)
Ответы Re: Easy way to change table schema?
Список pgsql-admin
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris Hoover wrote:
> I have accidentally created some tables in the wrong schema.  Since my
> testers have begun to use them and put data in them, I was hoping for an
> easy way to move the existing tables.
>
> Is there a way to move tables between schema's w/o having to drop and
> recreate?

ALTER TABLE

http://www.postgresql.org/docs/current/interactive/sql-altertable.html



>
> Thanks,
>
> Chris
>


- --

      === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564   24x7/Emergency: +1.800.492.2240
PostgreSQL solutions since 1997  http://www.commandprompt.com/
            UNIQUE NOT NULL
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGvIRtATb/zqfZUUQRAs8RAJ9MVrjBRLaXsR2QphhhkMXozf1thwCgm/VD
GfHR6aakLCNxyv8WhlR2cRE=
=ZYyS
-----END PGP SIGNATURE-----

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

Предыдущее
От: "Chris Hoover"
Дата:
Сообщение: Easy way to change table schema?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: exclude logs of one database from log