の列「sql_stmtに」の長すぎるここに私のXMLコードがデータ切り捨て:データ行1
<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>
あるリスト36個の要素を持って、私は10個の要素にリストをcuttedとき、それはsuccessedた、ここにありますエラー。
### 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
どのようにウラ表の構造。問題は列サイズよりもデータを挿入しようとしていることです。 – Balasubramanian