課程
/后端開發
/PHP
/手把手教你實現電商網站后臺開發
全文只有這一個錯誤
2016-01-23
源自:手把手教你實現電商網站后臺開發 1-2
正在回答
我是新手,不是很明白原理,但是這樣解決了問題:
SET NAMES GBK;
并且CREATE TABLE的末尾加上charset='utf8';像下面這樣
CREATE TABLE imooc_user(
id int unsigned auto_increment key,
username varchar(20) not null unique,
password char(32) not null,
sex enum('保密','女','男') not null default '保密',
face varchar(50) not null,
regTime int unsigned not null
)?charset='utf8';
IvanYe
Mr土豆先森
舉報
手把手教你用PHP搭建電子商務平臺,由淺入深教你搭建電商系統
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2016-02-05
我是新手,不是很明白原理,但是這樣解決了問題:
SET NAMES GBK;
并且CREATE TABLE的末尾加上charset='utf8';像下面這樣
CREATE TABLE imooc_user(
id int unsigned auto_increment key,
username varchar(20) not null unique,
password char(32) not null,
sex enum('保密','女','男') not null default '保密',
face varchar(50) not null,
regTime int unsigned not null
)?charset='utf8';