亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 9553 | 回復(fù): 3
打印 上一主題 下一主題

[SQL0330] Character conversion cannot be performed. [復(fù)制鏈接]

論壇徽章:
4
天蝎座
日期:2013-11-06 11:39:34巳蛇
日期:2014-01-16 16:53:14午馬
日期:2014-08-25 21:42:302015年迎新春徽章
日期:2015-03-03 17:21:44
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2014-06-14 11:18 |只看該作者 |倒序?yàn)g覽
用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)一下嗎?

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2014-06-14 16:34 |只看該作者
先把表中原有的數(shù)據(jù)備份了,再用ALTER TABLE ALTER FIELD 將937的字段改成935或1388,然后將數(shù)據(jù)恢復(fù)回去

論壇徽章:
4
天蝎座
日期:2013-11-06 11:39:34巳蛇
日期:2014-01-16 16:53:14午馬
日期:2014-08-25 21:42:302015年迎新春徽章
日期:2015-03-03 17:21:44
3 [報(bào)告]
發(fā)表于 2014-06-16 10:21 |只看該作者
本帖最后由 lvxinzhi 于 2014-06-17 16:48 編輯

回復(fù) 2# mxpy


The source CCSID is 937, and the target CCSID is 1388

這句話說的是數(shù)據(jù)庫中的字符集是1388,
現(xiàn)在要更新的sql 語句里的數(shù)據(jù)CCSID字符集是937,
在java程序里,并沒有指定字符集,后臺(tái)數(shù)據(jù)庫表中的字段也沒有937
這個(gè)937是那里來的?

   

論壇徽章:
4
天蝎座
日期:2013-11-06 11:39:34巳蛇
日期:2014-01-16 16:53:14午馬
日期:2014-08-25 21:42:302015年迎新春徽章
日期:2015-03-03 17:21:44
4 [報(bào)告]
發(fā)表于 2014-06-18 08:30 |只看該作者
本帖最后由 lvxinzhi 于 2014-06-18 08:43 編輯

問題已經(jīng)解決
參考:http://blog.chinaunix.net/uid-200142-id-4308738.html


Server property Description Required ChoicesDefault
package ccsid Specifies the character encoding to use for the SQL package and any statements sent to the server. "1200" (UCS-2)
    "13488" (UTF-16)
no13488


您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP