drop table if exists news;
create table news(
id int primary key auto_increment,
title varchar(50) not null,
content longtext not null,
time date not null,
column2_id int unsigned not null,
count int unsigned,
status int not null
)  

解决方案 »

  1.   

    注意保留字 time, count ,如用保留字做为标识符,需要用反引号`说明。mysql> create table news(
        ->  id int primary key auto_increment,
        ->  title varchar(50) not null,
        ->  content longtext not null,
        ->  `time` date not null,
        ->  column2_id int unsigned not null,
        ->  `count` int unsigned,
        ->  status int not null
        -> )
        -> ;
    Query OK, 0 rows affected (0.08 sec)mysql>
      

  2.   

    当您的问题得到解答后请及时结贴.
    http://topic.csdn.net/u/20090501/15/7548d251-aec2-4975-a9bf-ca09a5551ba5.html