• <tfoot id='OIXEY'></tfoot>

      <small id='OIXEY'></small><noframes id='OIXEY'>

      <i id='OIXEY'><tr id='OIXEY'><dt id='OIXEY'><q id='OIXEY'><span id='OIXEY'><b id='OIXEY'><form id='OIXEY'><ins id='OIXEY'></ins><ul id='OIXEY'></ul><sub id='OIXEY'></sub></form><legend id='OIXEY'></legend><bdo id='OIXEY'><pre id='OIXEY'><center id='OIXEY'></center></pre></bdo></b><th id='OIXEY'></th></span></q></dt></tr></i><div id='OIXEY'><tfoot id='OIXEY'></tfoot><dl id='OIXEY'><fieldset id='OIXEY'></fieldset></dl></div>
      <legend id='OIXEY'><style id='OIXEY'><dir id='OIXEY'><q id='OIXEY'></q></dir></style></legend>
          <bdo id='OIXEY'></bdo><ul id='OIXEY'></ul>

      1. SQL Server 中的可延迟约束

        时间:2023-09-19
            <legend id='Si7fs'><style id='Si7fs'><dir id='Si7fs'><q id='Si7fs'></q></dir></style></legend>
          • <small id='Si7fs'></small><noframes id='Si7fs'>

          • <tfoot id='Si7fs'></tfoot>
              <tbody id='Si7fs'></tbody>

                <bdo id='Si7fs'></bdo><ul id='Si7fs'></ul>
                  <i id='Si7fs'><tr id='Si7fs'><dt id='Si7fs'><q id='Si7fs'><span id='Si7fs'><b id='Si7fs'><form id='Si7fs'><ins id='Si7fs'></ins><ul id='Si7fs'></ul><sub id='Si7fs'></sub></form><legend id='Si7fs'></legend><bdo id='Si7fs'><pre id='Si7fs'><center id='Si7fs'></center></pre></bdo></b><th id='Si7fs'></th></span></q></dt></tr></i><div id='Si7fs'><tfoot id='Si7fs'></tfoot><dl id='Si7fs'><fieldset id='Si7fs'></fieldset></dl></div>

                  本文介绍了SQL Server 中的可延迟约束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  是否有任何版本的 SQL Server 支持可延迟约束 (DC)?

                  Do any versions of SQL Server support deferrable constraints (DC)?

                  从 8.0 版本开始,Oracle 支持延迟约束 - 仅在提交语句组时评估的约束,而不是在插入或更新单个表时评估.可延迟约束不同于仅禁用/启用约束,因为约束仍然处于活动状态 - 它们只是稍后评估(当批处理被提交时).

                  Since about version 8.0, Oracle has supported deferrable constraints - constraints that are only evaluated when you commit a statement group, not when you insert or update individual tables. Deferrable constraints differ from just disabling/enabling constraints, in that the constraints are still active - they are just evaluated later (when the batch is committed).

                  DC 的好处在于,它们允许对个别非法的更新进行评估,从而累积导致有效的最终状态.一个例子是在两行之间的表中创建循环引用,其中每行都需要一个值.没有单独的插入语句会通过约束 - 但组可以.

                  The benefit of DC is that they allow updates that individually would be illegal to be evaluated that cummulatively result in a valid end state. An example is creating circular references in a table between two rows where each row requires a value to exist. No individual insert statement would pass the constraint - but the group can.

                  为了阐明我的目标,我希望将 C# 中的 ORM 实现移植到 SQLServer - 不幸的是,该实现依赖于 Oracle DC 来避免在行之间计算插入/更新/删除订单.

                  To clarify my goal, I am looking to port an ORM implementation in C# to SQLServer - unfortunately the implementation relies on Oracle DC to avoid computing insert/update/delete orders amongst rows.

                  推荐答案

                  目前 SQL Server 不支持它们.您要解决的问题是什么?

                  So far SQL Server does not support them. What is the problem you are solving?

                  这篇关于SQL Server 中的可延迟约束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:在 Oracle 行的多列上使用数据透视表 下一篇:ORA-12170: TNS:Connect 超时发生

                  相关文章

                      <bdo id='NcAx5'></bdo><ul id='NcAx5'></ul>

                    <small id='NcAx5'></small><noframes id='NcAx5'>

                  1. <legend id='NcAx5'><style id='NcAx5'><dir id='NcAx5'><q id='NcAx5'></q></dir></style></legend>

                      <i id='NcAx5'><tr id='NcAx5'><dt id='NcAx5'><q id='NcAx5'><span id='NcAx5'><b id='NcAx5'><form id='NcAx5'><ins id='NcAx5'></ins><ul id='NcAx5'></ul><sub id='NcAx5'></sub></form><legend id='NcAx5'></legend><bdo id='NcAx5'><pre id='NcAx5'><center id='NcAx5'></center></pre></bdo></b><th id='NcAx5'></th></span></q></dt></tr></i><div id='NcAx5'><tfoot id='NcAx5'></tfoot><dl id='NcAx5'><fieldset id='NcAx5'></fieldset></dl></div>
                    1. <tfoot id='NcAx5'></tfoot>