ああ、またか。MySQLはこのエラーをスローします:#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 'tinytext not null,
FirstName varchar(50) not null,
LastName varchar(50) nu' at line 5
これについて考えられる構文上の問題は何でしょうか?
コードは次のとおりです。
CREATE TABLE posts (
ID int unsigned not null auto_increment,
Type enum('article', 'link') not null,
Title text null,
Link text null,
BodyOrig longtext null,
BodyProc longtext not null,
URL tinytext not null,
ShortURL tinytext not null,
Status enum('drafted', 'published') not null,
DateEdited timestamp null,
DatePublished timestamp null,
Topic enum('') null,
primary key (ID, URL(255), ShortURL(10))
);
CREATE TABLE pages (
ID int unsigned not null auto_increment,
Name varchar(25) not null,
Title text not null,
BodyOrig longtext null,
BodyProc longtext not null,
URL tinytext not null,
Hero text null,
Status enum('drafted', 'published') not null,
primary key (ID, Name, URL(255))
);
CREATE TABLE users (
ID int unsigned not null auto_increment,
Username varchar(25) not null,
Password text not null,
Key tinytext not null,
FirstName varchar(50) not null,
LastName varchar(50) null,
DisplayName tinytext not null,
Email tinytext not null,
primary key (ID, Username, Key(255));
);
CREATE TABLE settings (
Version varchar(10) not null,
SiteName tinytext not null,
Description tinytext not null,
ColorScheme char(6) not null
);
私の目がちょうど先端の形になっていないか、何か(特定のフォーマット?)が欠けています。ご助力ありがとうございます!