`
tanlingcau
  • 浏览: 138020 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Attempt to modify an identity column

 
阅读更多
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 Po

    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 破解方法

    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!

    PyOpenGL-3.1.5-cp37-cp37m-win_amd64.whl

    解决: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

    DB2数据库跨平台备份与恢复

    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 co

    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双击打开错误方式的修复

    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 DEAR TEACHER, THIS IS AN ATTEMPT TO INTERPRET SOME RESEARCH FINDINGS KEITH A. MC NEIL AND BEEMAN N. PHILLIPS Southern ...

    OpenGL_绘制三角形.zip

    该文件详细介绍了OpenGL渲染一个三角形的函数解析、基本图元解释、实现流程等,能完整的绘制一个三角形的显示,以及完整代码实现和注释。

    Python-动手学深度学习例子的PyTorch实现

    This is an attempt to modify Dive into Deep Learning, Berkeley STAT 157 (Spring 2019) textbook's code into PyTorch.

    【ASP.NET编程知识】.net core并发下线程安全问题详解.docx

    异常5“Object reference not set to an instance of an object”是经典的空引用异常,意味着尝试访问的对象尚未初始化。这可能由于代码中的null检查不足导致,需要在访问对象属性或方法前确保对象已被正确实例化。 ...

    基于uniapp开发的zblog多端小程序源码

    基于uniapp开发的zblog多端小程序开源源码,反正据说利于收录,利于SEO,鹏仔一直使用的是zblog,所以就基于zblog进行开发。 使用uniapp打造多端小程序(主要针对 微信小程序、百度小程序、安卓APP) ...

    Introduction.To.Algorithms,.Second.Edition

    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..zip

    总的来说,"An attempt at a C++ tutorial"可能涵盖了以上提到的所有或部分主题,旨在为初学者提供一个全面的C++学习路径。通过逐步学习并实践这些概念,你可以逐渐精通C++,并能够编写出高质量的代码。

    java资源,An opinionated

    # 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

    smoke dx10 Copyright 2007 NVIDIA Corporation

    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....

    Exploiting_Freelist[0]_On_XPSP2

    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 ...

    Kafka 使用

    简介 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

    Kerberos Administration Guide

    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 ...

    The Language of SQL(Addison,2ed,2016)

    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 ...

Global site tag (gtag.js) - Google Analytics