天天看點

oracle mybatis 提示:java.sql.SQLSyntaxErrorException: ORA-00913: 值過多

錯誤資訊:

### Error updating database.  Cause: java.sql.SQLSyntaxErrorException: ORA-00913: 值過多

### The error may involve com.zzg.mapper.in.DSingleProjectMapper.batchInsert-Inline
### The error occurred while setting parameters
### SQL: insert into D_SINGLE_PROJECT (KID, ENG_SID, LENGTH, WIDTH,       HEIGHT, SPAN, CONS_TYPE_CODE,        CREATED_BY, CREATED_DT, UPDATED_BY,        UPDATED_DT, OLD_FLAG, DIVISION_SITUATION)        select s_d_single_project.nextval, cd.* from (                    (         select          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?        from dual        )        UNION ALL          (         select          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?        from dual        )        UNION ALL          (         select          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?        from dual        )        UNION ALL          (         select          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?        from dual        )        UNION ALL          (         select          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?        from dual        )        UNION ALL          (         select          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?,          ?        from dual        )               ) cd
### Cause: java.sql.SQLSyntaxErrorException: ORA-00913: 值過多

; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: ORA-00913: 值過多
           

造成原因:插入字段與字段名稱無法一一對應。