create table 'person'(
'id' int(11) not null auto_increment,
'Name' varch(20) not null default",
'Sex' char(1) default null,
'Address' varchar(200) default null,
primary key ('200')default Null,
primary key ('ID'),
)type=MyISAM;

解决方案 »

  1.   

    create table 'person'(
    'id' int(11) not null auto_increment,
    'Name' varch(20) not null default",  应该是两个单引号,不是一个双引号。 varchar 拼写错误!
    'Sex' char(1) default null,
    'Address' varchar(200) default null,
    primary key ('200')default Null,   不可以有两个PRIMARY KEY
    primary key ('ID'),  多了个逗号
    )type=MyISAM;
    mysql> create table person(
        -> id int(11) not null auto_increment,
        -> Name varchar(20) not null default '',
        -> Sex char(1) default null,
        -> Address varchar(200) default null,
        -> primary key (ID)
        -> )type=MyISAM;
    Query OK, 0 rows affected, 1 warning (0.08 sec)mysql>
    当您的问题得到解答后请及时结贴.
    http://topic.csdn.net/u/20090501/15/7548d251-aec2-4975-a9bf-ca09a5551ba5.html