【发布时间】:2013-11-28 19:04:32
【问题描述】:
我有一个 Postgres 8.4 架构,如下所示:
My_Database
|-> Schemas
|-> AccountA
|-> AccountB
|-> AccountC
|-> AccountD
|-> AccountE
...
|-> AccountZ
所有模式都有一个名为product 的表,我想立即向它们添加一个布尔列。可以这样做吗?
到目前为止,我发现的唯一方法是逐个帐户运行以下 SQL 帐户。
ALTER TABLE product ADD COLUMN show_price boolean NOT NULL DEFAULT TRUE;
【问题讨论】:
标签: sql postgresql plpgsql ddl postgresql-8.4