ドットインストールに従って、mysqlで表を作ろうとした時に
create table users (
id int not null auto_increment primary key,
name varchar(255),
email varchar(255) unique,
password char(32),
score double,
sex enum(‘male’ ,’female’) default ‘male’,
memo text,
created datetime,
key score (score)
);
と打ち込むと
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '‘male’ ,’female’) default ‘male’,
このようなエラーが表示されました。
構文エラーだとわかったのですが、どこが間違っているかがわからずに途方に暮れています。
わかる方よろしくお願いします。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/10/23 03:34