当前位置:网站首页>MySQL character set

MySQL character set

2022-06-23 05:42:00 Programming little white

View database character set :

SHOW VARIABLES LIKE 'character%';

use SQL Statement modify character set :
Modify the character set of the database :

alter DATABASE test DEFAULT CHARACTER SET = utf8; // test Name the database 

Modify the character set of the database table :

ALTER TABLE test.bd_user DEFAULT CHARACTER SET = utf8; // bd_user Is the name of the watch 

Modify the character set of a field in the database :

ALTER TABLE erp20220419.scm_supplier_goods MODIFY COLUMN unit VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci; //  The field type will also be changed here 
原网站

版权声明
本文为[Programming little white]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206230350351310.html