Davidyooo
Davidyooo
2019-04-10 18:11

Mysql建表显示错误,Error : You have an error in your SQL syntax;(急!!!)

  • mysql

create TABLE ProductIns
(product_id char(4) NOT FULL,
product_name VARCHAR(100) NOT FULL,
product_type varchar(32) NOT FULL,
sale_price INTEGER DEFAULT 0,
purchase_price INTEGER ,
regist_date INTEGER ,
PRIMARY KEY (product_id));

在mysql创建上面这么一个表格显示错误:
Error : 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 'FULL,
product_name VARCHAR(100) NOT FULL,
product_type varchar(32) NOT ' at line 2

请问问题是出在哪里了

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答