准备用mysql做一个表,建表语句如下:
create table tv_play(
name varchar(40) not null,
country of origin varchar(40) not null,
production company varchar(40) not null,
genre varchar(40) not null);
结果显示语法错误,求指明错误所在。
country of origin 可以空格吗
create table tv_play(
name varchar(40) not null,
country_of_origin varchar(40) not null,
production_company varchar(40) not null,
genre varchar(40) not null);
production company也是,中间不能有空格。。。可以用下划线连接。。。。
production company也是,中间不能有空格。。。可以用下划线连接。。。。
create table tv_play(name
varchar(40) not null,
country_of_origin varchar(40) not null,
production_company varchar(40) not null,
genre varchar(40) not null);
column(字段名)不能有空格的,可以用下划线
唉这么多空格,你要累死mysql语法检查器啊!字段名不能用空格,用_下滑线啊。
create table tv_play(
name varchar(40) not null,
country_of_origin varchar(40) not null,
production_company varchar(40) not null,
genre varchar(40) not null);
不要用空格啊