使用mysql创建表,并在sql字符串中设置TYPE=InnoDB
我想用以下代码创建一个mysql表:使用mysql创建表,并在sql字符串中设置TYPE=InnoDB,mysql,phpmyadmin,Mysql,Phpmyadmin,我想用以下代码创建一个mysql表: create table geodb_type_names ( type_id integer not null, type_locale varchar(5) not null, name varchar(255) not null, /* varchar(500)? */ unique (type_id, type_locale) ) TYPE
create table geodb_type_names (
type_id integer not null,
type_locale varchar(5) not null,
name varchar(255) not null, /* varchar(500)? */
unique (type_id, type_locale)
) TYPE=InnoDB CHARACTER SET utf8;
它来自OpenGeoDb的mysql转储
所以我不是自己创造的。
如果在phpmyadmin中包含此语句,则会收到以下错误消息:
#1064 - 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 'TYPE=InnoDB CHARACTER SET utf8' at line 10
但我找不到问题所在。也许有人能帮我
非常感谢。型号已由发动机取代。类型在MySQL 4.0中被弃用,在MySQL 5.5中被删除
使用此查询:
create table geodb_type_names (
type_id integer not null,
type_locale varchar(5) not null,
name varchar(255) not null, /* varchar(500)? */
unique (type_id, type_locale)
) ENGINE=InnoDB CHARACTER SET utf8;
Now类型的可能副本未在使用中。请用发动机代替打字。谢谢。我将在几分钟内试一试。