简体   繁体   English

PHPMyAdmin中的错误#1064

[英]Error #1064 in PHPMyAdmin

Can anyone tell me why PHPMyAdmin throws out the Error #1064? 任何人都可以告诉我为什么PHPMyAdmin会抛出错误#1064?

MySQL Query: MySQL查询:

CREATE TABLE posts 
  ( ID not null auto_increment unsigned int, 
    pType enum('article', 'link') not null, 
    Title text null, 
    Link text null, 
    BodyMD longtext null, 
    BodyHT 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, ShortURL) 
  );

You need to specify the column type before constraints and attributes, and the correct type is int unsigned , not unsigned int : 您需要约束和属性之前指定列类型,正确的类型是int unsigned ,而不是unsigned int

...
ID int unsigned not null auto_increment,
...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM