2017-09-11 6 views
0

행 1에서 열 'SQL_stmt를'여기, 내가 10 개 요소 목록의 cutted 때 36 개 요소, 그것은 successed 된 한데이터 잘림 : 데이터가 너무 오래 여기

<insert id="insertAnnualKiln" parameterType="list"> 
     insert into prm_annual_kiln (id,parent_id,runtime_kiln,runtimerate_kiln,shutdowntime_kiln, 
     shutdowndesc_kiln,heat_clinker,elect_clinker,equip_code,prod_clinker_type) VALUES 
     <foreach collection="list" item="item" separator=","> 
      (#{item.id},#{item.parentId},#{item.runtimeKiln},#{item.runtimerateKiln}, 
      #{item.shutdowntimeKiln},#{item.shutdowndescKiln},#{item.heatClinker},#{item.electClinker} 
      ,#{item.equipCode},#{item.prodClinkerType}) 
     </foreach> 
    </insert> 

목록 내 XML 코드 인 것입니다 오류.

### SQL: insert into prm_annual_kiln (id,parent_id,runtime_kiln,runtimerate_kiln,shutdowntime_kiln, shutdowndesc_kiln,heat_clinker,elect_clinker,equip_code,prod_clinker_type) VALUES   (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) ,  (?,?,?,?, ?,?,?,? ,?,?) 
### Cause: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'sql_stmt' at row 1 
; SQL []; Data truncation: Data too long for column 'sql_stmt' at row 1; nested exception is com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'sql_stmt' at row 1 
+0

어떨까요? 문제는 열 크기보다 데이터를 삽입하려고하는 것입니다. – Balasubramanian

답변

0

테이블의 sql_stmt 정의를 변경하여 더 긴 길이를 설정하십시오. 예 :

ALTER TABLE <table_name> MODIFY sql_stmt VARCHAR(<a longer length>); 
+0

하지만이 열이 없습니다 ... – pingandpong

+0

다른 열에이 열이 있습니까? –