Use Getnextexception () to retrieve the exception for a specific element that has been batched. errorcode=-4228, Sqlstate=null

Source: Internet
Author: User

Today query a day to find the problem, with Ibatis do batch operation, error:

[Non-atomic batch failure] use Getnextexception () to retrieve the exception of a specific element that has been batched. errorcode=-4228, Sqlstate=null

Think is what table space problem, later found still table field ' brand_nm ' length set small, for varchar (25) caused, but look at the value length: Natural Incense Rhyme (NATURE CHARM), is 22 characters ah, very strange.

SELECT * FROM Dmc_tc_rule_basic_cfg

SELECT * FROM Dmc_tc_rule_basic

--Delete
Delete (
SELECT * FROM Dmc_tc_rule_basic_str_rel
)
--Query table records
Select *from syscat.columns where tabname = Upper (' dmc_tc_rule_basic_cfg ') and colname = ' brand_nm '
--Modify Table column length
ALTER TABLE dmc_tc_rule_basic_cfg ALTER COLUMN BRAND_NM SET data type varchar (40)

Reference related documents: http://blog.csdn.net/mcpang/article/details/8241854

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.