CHAR and NCHAR are both fixed-length string data types. They have the following differences-
CHAR data type | ##NCHAR data type |
Its full name is NATIONAL CHARACTER | |
It uses the Unicode character set and data is stored in UTF8 format | |
Each character occupies 2 bytes of space | |
The above is the detailed content of What is the difference between CHAR and NCHAR in MySQL?. For more information, please follow other related articles on the PHP Chinese website!