天天看點

MySql學習

1.建立UTF-8字元集資料庫

  CREATE DATABASE db_name DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;

2.修改資料庫的字元集

  ALTER DATABASE db_name DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci