Dameng database coding

When the database code is utf8, a Chinese character occupies three bytes.
When the database code is GB18030, a Chinese character occupies two bytes.
Check the
Dameng database code: select SF_GET_UNICODE_FLAG();
or
select UNICODE (); the
result is 0 means GB18030, 1 means UTF-8, 2 means EUC-KR.
For example:
the encoding of the Dameng database below is utf8.
Insert picture description here
The maximum length of the fields such as road technology in this table is 8 bytes, indicating that the value of the road technology of the data cannot exceed 3 Chinese characters. Otherwise, the import will not enter the Dameng database.

Guess you like

Origin blog.csdn.net/bureau123/article/details/112624254