Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建表语句未指定字符集编码,导致插入数据会报错 #20

Open
TreeFireMen opened this issue Dec 26, 2022 · 0 comments
Open

Comments

@TreeFireMen
Copy link

TreeFireMen commented Dec 26, 2022

使用建表SQL创建的数据库和表的默认字符集是
image
在建数据库和表时应该指定utf-8字符集
MySQL8.0之前创建表不指定字符集的话,默认采用latin1字符集,MySQL8.0之后版本才改为默认utf8mb4(most bytes 4)字符集

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant