• <small id='tG7uO'></small><noframes id='tG7uO'>

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

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

      2. 更新 DB2 for iSeries 表时出错 SQL7008

        时间:2023-09-30

        <tfoot id='UstVN'></tfoot>

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

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

              <bdo id='UstVN'></bdo><ul id='UstVN'></ul>
                <tbody id='UstVN'></tbody>

                  本文介绍了更新 DB2 for iSeries 表时出错 SQL7008的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我有一个使用 Hibernate 和 DB2 for iSeries 的 Java Web 应用程序,在更新表期间我收到以下错误:-

                  I have a Java Web application using Hibernate and DB2 for iSeries and during update of a table I get he following error:-

                  更新 DB2 时出错 SQL7008iSeries 表

                  Error SQL7008 while updating a DB2 for iSeries table

                  推荐答案

                  通过对该错误消息进行一些谷歌搜索,我注意到当您在非事务模式下运行插入/更新时会发生这种情况.这里给出了解释.

                  From doing some googling on this error message I noticed that it happens when you are running an insert/update in a non-transactional mode. The explanation is given here.

                  发生这种情况是因为您所在的表试图更新不是已记录,您的更新正在在事务中运行.

                  This occurs because the table you are trying to update is not being journalled, and your update is being run within a transaction.

                  通常,您应该始终提交(并在发生异常时回滚)您的事务.通常我从不将自动提交设置为 true,但在这种情况下,我想了解它是否真的需要,如上面链接中所述.您可以在连接中将自动提交设置为 true 以查看这是否会消失吗?

                  Generally, you should always commit (and rollback if an exception occurs) your transactions. Usually I never set auto commit to true but in this case I would like to understand if it's truly needed as mentioned in the link above. Can you set the auto commit to true in your connection to see if this goes away?

                  <property name="hibernate.connection.autocommit" value="true"/>

                  这个链接还有一些关于hibernate事务管理的教程.

                  Also this link has some tutorials on transaction management with hibernate.

                  这篇关于更新 DB2 for iSeries 表时出错 SQL7008的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:JPA 自动 BigDecimal 转换 下一篇:OutputStream 到 DB2 数据库表的 BLOB 列

                  相关文章

                  最新文章

                    1. <small id='JVeC8'></small><noframes id='JVeC8'>

                        <bdo id='JVeC8'></bdo><ul id='JVeC8'></ul>
                      <tfoot id='JVeC8'></tfoot>

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