表继承:跨分区强制执行唯一约束? [英] Table inheritance: Enforcing unique constraints across partitions?

查看:211
本文介绍了表继承:跨分区强制执行唯一约束?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表,我想分区,但我不知道如何处理的唯一性约束。

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?

推荐答案

不,目前不可能。您最好做的是创建一个触发器,手动进行验证。

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

这篇关于表继承:跨分区强制执行唯一约束?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆