关闭 Derby 中的引用完整性?是否可以?

发布于 2025-01-02 15:28:51 字数 95 浏览 3 评论 0 原文

derby 中是否有一个设置,例如 sql 查询 ala“SET DATABASE REFERENTIAL INTEGRITY FALSE”,我可以在其中打开和关闭引用完整性?

Is there a setting in derby, for example an sql query ala "SET DATABASE REFERENTIAL INTEGRITY FALSE" where i can turn on and off referential integrity?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

背叛残局 2025-01-09 15:28:51

如果您不想强制执行约束,可以使用 DROP CONSTRAINT 删除它。

当我重新构建数据库时,我经常会在一段时间内删除约束,然后当我按照需要排列新数据时重新添加约束。

If you have a constraint that you don't wish to enforce, you can use DROP CONSTRAINT to drop it.

I frequently drop a constraint for a period of time while I am re-structuring my database, then re-add the constraint subsequently when I have the new data arranged as I want it.

离线来电— 2025-01-09 15:28:51

根据邮件列表上的这篇文章(从 2006 年开始),这是不可能的:

http://www.mail-archive.com/[电子邮件受保护]/msg05345.html

我在手册 之一。

jdbc 参数列表也没有任何内容。

According to this post on the mailing list (from 2006) it is not possible:

http://www.mail-archive.com/[email protected]/msg05345.html

I couldn't find anything in the manual either.

And the list of jdbc parameters has nothing, too.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文