`
tanlingcau
  • 浏览: 135865 次
  • 性别: 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
分享到:
评论

相关推荐

    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

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

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

    如何解决恢复DB2数据库的32位实例下的压缩备份到64位实例时遇到的SQL2570N错误?

    An attempt at a C++ tutorial..zip

    An attempt at a C++ tutorial.

    From Theory to Practice: An overview of MIMO

    MIMO wireless links, we highlight the di erent classes of techniques and algorithms proposed which attempt to realize the various bene ts of MIMO including spatial multiplexing and space-time coding ...

    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.

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

    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

    Omron G3ZA加热器用电力调整器手册(英文版).pdf

    Omron G3ZA加热器用电力调整器手册(英文版)pdf,Omron G3ZA加热器用电力调整器手册(英文版)

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

    Impactor_0.9.51

    Also: Tons of people are downloading Cydia Impactor in an attempt to install some kind of Pokemon Go hack in the form of an IPA file... to their Android device... an IPA file is for devices running ...

    关于C#更新智能大对象更新时的问题及解决方法.doc

    Illegal attempt to use Text/Byte host variable. 解决方法: 使用GbsConnection的方法GetGbsBlob(), GetGbsClob(), 获得Blob,Clob对象。 将Blob,Clob对象作为参数值。就能够解决该问题。

    c++ granularity.pdf

    We will exam- ine these differences in an attempt to understand the common thread that binds them all together. Such a thread does exist, and it will lead us through some of the most important ...

Global site tag (gtag.js) - Google Analytics