Gau*_*nia 5 database postgresql
假设我有一个 xmldoc 关系,如下所示:
Column | Type | Modifiers
--------------+-----------------------------+-----------------
docid | integer | not null
create_date | timestamp without time zone | not null
type | text | not null
xml | xml |
Run Code Online (Sandbox Code Playgroud)
现在,假设我创建了另一个表,该表仅从该表继承而没有任何其他列。例如,我如何将“xml”覆盖为“text”类型?
目前,我得到:
ERROR: cannot alter inherited column "xml"
Run Code Online (Sandbox Code Playgroud)
那么,数据库继承中的覆盖是如何工作的呢?[具体来说,我使用的是 PostgreSQL 8.3]
| 归档时间: |
|
| 查看次数: |
2734 次 |
| 最近记录: |