发现一个错误:
ERROR 1064 (42000): 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 'Sn ch
ar(50) not null,
Sa int unsigned not null,
Sex char(10) not null
)' at line 3一个简单的问题,折腾了我很久,请看源查询语句:
mysql> create table S
    -> (S# char(50) not null primary key,
    -> Sn char(50) not null,
    -> Sa int unsigned not null,
    -> Sex char(10) not null
    -> );后来把S# 改为stunum就无事了,为什么mysql将#看成  '  呢???MySQL数据库创建表