Table inheritance: Enforcing unique constraints across partitions?

☆樱花仙子☆ 提交于 2019-12-11 07:14:10

问题


I have a table that I would like to partition, but I don't know how to deal with the uniqueness constraints.

Is it possible to create a unique constraint across multiple child tables?


回答1:


No, this is not currently possible. The best you can do is to create a trigger that does the verification manually.



来源:https://stackoverflow.com/questions/936818/table-inheritance-enforcing-unique-constraints-across-partitions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!