1. 程式人生 > >db2 應用FOR MIXED DATA 報錯-622

db2 應用FOR MIXED DATA 報錯-622

當create table,應用到FOR MIXED DATA 時,出現Error: -622 FOR MIXED DATA IS INVALID BECAUSE THE MIXED DATA INSTALL OPTION IS NO

具體描述: https://www.ibm.com/support/knowledgecenter/ca/SSEPEK_11.0.0/codes/src/tpc/n622.html 其中: Programmer response:   Either change the installation option or the FOR clause. If the installation option is correctly set to NO, the allowable FOR clause options are BIT and SBCS.

沒找到安裝時設定的地方,最後找到錯誤原因是因為字符集報錯。 通過建立兩個db測試: db2 create database testdb1 using codeset iso8859-1 territory US;

db2 create database testdb2 using codeset UTF-8 territory US;

testdb1報錯, testdb2就不報錯了。