informix數(shù)據(jù)庫連接 infomix的數(shù)據(jù)庫字符集,常用的有哪幾個?
infomix的數(shù)據(jù)庫字符集,常用的有哪幾個?1、查看數(shù)據(jù)庫字符集有兩種方法:A.dbaccess dbname從系統(tǒng)表中選擇站點(diǎn),其中tabname=“GLuuu Collate”B.dbacces
infomix的數(shù)據(jù)庫字符集,常用的有哪幾個?
1、查看數(shù)據(jù)庫字符集有兩種方法:A.
dbaccess dbname
從系統(tǒng)表中選擇站點(diǎn),其中tabname=“GLuuu Collate”
B.
dbaccess sysmaster
從sysdbslocal中選擇*
2。查看支持字符集
A.
操作系統(tǒng)
區(qū)域設(shè)置-A | grep-I字符集名稱
B.
infomrix的GLS
CD$informixdir
plfiles
查看lc11。TXT文件信息
3。如何設(shè)置字符集
由于Informix數(shù)據(jù)庫的字符集對整個實(shí)例有效,因此默認(rèn)字符集為:en_uus。819
其他字符集可以按以下方式設(shè)置(只能在數(shù)據(jù)庫初始安裝時(shí)修改)。以UTF-8字符集為例。
將
export lang=zh添加到Informix環(huán)境變量u中中國聯(lián)合技術(shù)論壇-8
導(dǎo)出DBulocale=zhu中國utf8
導(dǎo)出客戶端uLocale=zhu中國utf8
重新初始化數(shù)據(jù)庫。新數(shù)據(jù)庫支持utf8字符集。