Caused by: org.apache.derby.client.am.SqlException: 尝试修改标识列“SRV_ID”。
at org.apache.derby.client.am.Statement.completeSqlca(Unknown Source)
at org.apache.derby.client.net.NetStatementReply.parsePrepareError(Unknown Source)
at org.apache.derby.client.net.NetStatementReply.parsePRPSQLSTTreply(Unknown Source)
at org.apache.derby.client.net.NetStatementReply.readPrepareDescribeOutput(Unknown Source)
at org.apache.derby.client.net.StatementReply.readPrepareDescribeOutput(Unknown Source)
at org.apache.derby.client.net.NetStatement.readPrepareDescribeOutput_(Unknown Source)
at org.apache.derby.client.am.Statement.readPrepareDescribeOutput(Unknown Source)
at org.apache.derby.client.am.PreparedStatement.readPrepareDescribeInputOutput(Unknown Source)
at org.apache.derby.client.am.PreparedStatement.flowPrepareDescribeInputOutput(Unknown Source)
at org.apache.derby.client.am.PreparedStatement.prepare(Unknown Source)
at org.apache.derby.client.am.Connection.prepareStatementX(Unknown Source)
... 90 more
问题描述:在setId后保存po时,报“尝试修改标识列”的异常
原因:主键设置了自增长
ij> CONNECT 'jdbc:derby://localhost:1527/practice;user=practice;password=practic
e';
ij> describe DEPARTMENT1;
COLUMN_NAME |TYPE_NAME|DEC&|NUM&|COLUM&|COLUMN_DEF|CHAR_OCTE&|IS_NULL&
------------------------------------------------------------------------------
ID |BIGINT |0 |10 |19 |AUTOINCRE&|NULL |NO
DEPARTMENTNAME |VARCHAR |NULL|NULL|255 |NULL |510 |YES
2 rows selected
分享到:
相关推荐
An attempt to read, understand, and implement the AUTOSAR SWS Port Driver according to the specification in a demo full-layered AUTOSAR a…
orcad15.7 安装问题解决:An application has made an attempt to load the C runtime library incorrectly. Please ccontact the application"s support team for more information!
解决:OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutI 下载后,在该目录打开cmd,安装pip install PyOpenGL-3.1.5-cp37-cp37m-win_amd64.whl
SQL2570N 错误的全称是“An attempt to restore on target OS from a backup created on source OS failed due to the incompatibility of operating systems or an incorrect specification of the restore command...
This little project is Dannys first attempt at an ActiveX control and its very good. There are two mini projects included here. The first is called SlotDemo and allows you to send messages or data in ...
PB,全称PowerBuilder,是一种流行的面向对象的编程环境,主要用于开发企业级应用程序,特别是数据库应用。当你在尝试双击打开PB项目时遇到错误,这可能是由于多种原因引起的,包括注册表问题、软件版本不兼容、环境...
Dear teacher, this is an attempt to interpret some research findings DEAR TEACHER, THIS IS AN ATTEMPT TO INTERPRET SOME RESEARCH FINDINGS KEITH A. MC NEIL AND BEEMAN N. PHILLIPS Southern ...
该文件详细介绍了OpenGL渲染一个三角形的函数解析、基本图元解释、实现流程等,能完整的绘制一个三角形的显示,以及完整代码实现和注释。
This is an attempt to modify Dive into Deep Learning, Berkeley STAT 157 (Spring 2019) textbook's code into PyTorch.
异常5“Object reference not set to an instance of an object”是经典的空引用异常,意味着尝试访问的对象尚未初始化。这可能由于代码中的null检查不足导致,需要在访问对象属性或方法前确保对象已被正确实例化。 ...
基于uniapp开发的zblog多端小程序开源源码,反正据说利于收录,利于SEO,鹏仔一直使用的是zblog,所以就基于zblog进行开发。 使用uniapp打造多端小程序(主要针对 微信小程序、百度小程序、安卓APP) ...
We attempt to present each algorithm simply and directly without allowing the idiosyncrasies of a particular programming language to obscure its essence. To our colleagues We have supplied an ...
总的来说,"An attempt at a C++ tutorial"可能涵盖了以上提到的所有或部分主题,旨在为初学者提供一个全面的C++学习路径。通过逐步学习并实践这些概念,你可以逐渐精通C++,并能够编写出高质量的代码。
# Interview Guide Welcome to my [interview guide](https://interviewguide.dev)!...This guide is my attempt to codify my opinionated interview process for the benefit of the software devel
Developer acknowledges that certain of the Materials provided in Object Code version may contain third party...attempt to modify or distribute such Materials without first receiving consent from NVIDIA....
attempt to prevent the use of overwritten heap headers to do arbitrary byte writing. This method of exploiting heap overflows, and the protection offered by service pack 2, is widely known and has ...
简介 Zookeeper搭建 bin/zkServer.sh start ... Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn) [2020-02-19 14:58:13,672] WARN Session 0x0 for serve
The Kerberos protocol uses strong cryptography so that a client can prove its identity to a server (and vice versa) across an insecure network connection. After a client and server has used Kerberos ...
Many SQL texts attempt to serve as an encyclopedic reference on SQL syntax — an approach that is often counterproductive, because that information is readily available in online references published ...