|
版本: |
|
小版本号: |
|
|
|
数据库: |
|
服务器操作系统: |
|
应用服务器: |
|
客户端操作系统: |
|
浏览器: |
|
|
|
我的java代码是下面这样写,PO_LKL_Tasks 这个表的关键字的默认值是在概念中设为guid()了,但执行时报错。java.sql.SQLException: Duplicate entry '' for key 1
String stmt;
stmt = "insert into PO_LKL_Tasks t (t.fLKL_ClientSN,t.fArchNo,t.fQuarter,t.fImportTime,t.fBatch" +
",t.fClientNo,t.fClientName,t.fPersonInCharge,t.fRegisterDate,t.fMachineNum,t.fUniqueID,t.fInstallAddr,t.fMobile,t.fTelephone,t.fBusinessZone,t.fBusinessArea" +
",t.fLongitude,t.fLatitude,t.fConfirmAddr,t.fInspectTimes,t.fClientStatus) " +
" (select c.fLKL_ClientSN,c.fArchNo,c.fQuarter,:currentDateTime() as fImportTime,'" + fBatch +"'"+
",c.fClientNo,c.fClientName,c.fPersonInCharge,c.fRegisterDate,c.fMachineNum,c.fUniqueID,c.fInstallAddr,c.fMobile,c.fTelephone,c.fBusinessArea,c.fBusinessArea" +
",c.fLongitude,c.fLatitude,c.fConfirmAddr,c.fInspectTimes,c.fClientStatus from PO_LKL_Client c " +
" where c.fQuarter = '"+fQuarter+"' and c.fBatch = '" +fBatch+"')";
com.justep.system.data.KSQL.executeUpdate(stmt, null, "/posmaintain/baseinfo/data", null);
|
|