- 論壇徽章:
- 4
|
用jboss做中間層,數(shù)據(jù)端端maker,MODIFIER的 CCSID均為1388,在中間層新增數(shù)據(jù)時(shí),一切正常,但在保存數(shù)據(jù)時(shí)出現(xiàn)以下錯(cuò)誤,請問是什么原因?
[SQL0330] Character conversion cannot be performed. Cause . . . . . : An attempt was made to convert column or host variable *N to column or host variable MODIFIER. The conversion cannot be performed. If the source data is character and has a mixed Coded Character Set Identifier (CCSID), then double-byte characters were found. These mixed data conversions are only allowed if the source data does not contain any double-byte data. If the data is graphic, the CCSID values are not compatible or the string contains single-byte characters. The source CCSID is 937, and the target CCSID is 1388. Recovery . . . : Ensure that all character or graphic comparison, concatenation, or assignment is between columns or host variables with compatible CCSID values. If character data and the source CCSID is mixed, the source data should not contain any double-byte characters. If graphic data, the string cannot contain single-byte characters. Use a casting function like VARCHAR to convert between character, DBCS graphic, and Unicode graphic data.
新增數(shù)據(jù)的字符集為GBK,通過測試發(fā)現(xiàn),把CCSID改為937,系統(tǒng)會(huì)保存成功,但會(huì)丟失部分中文
有人給指導(dǎo)一下嗎? |
|