注册 登录
编程论坛 MySQL论坛

建表出错

Linux_MD 发布于 2009-07-21 20:41, 916 次点击
因为项目才接触数据库   要求建一个表
我自己如下建立
create table techout
(
     pronum    int(6)   not null  primary key auto_increment,
     techtype  char(20)  not null,
     proname   cahr(30)  not null,
     regdepart  char(20)   not null,
     expertexam   char(10)   not null,
     award       char(30)   not null,
     personres     char(20)   not null,
);

老是报错  提示如下:
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 ')' at line 10
不知道是怎么回事了    我是参照网上的例子做的
先谢谢哈
2 回复
#2
Linux_MD2009-07-21 21:40
呃。。。
知道咋回事了哈  
不好意思    新学的
最后一句应该不要逗号。。。。
#3
lingsu2010-12-08 18:59
建表之前先要use database;
1