[SQL]CREATE TABLE ORDER (
SoleId nvarchar (50) NOT NULL COMMENT '订单编号',
Userid nvarchar (50) NOT NULL COMMENT '客户编号',
rid nvarchar (50) NOT NULL COMMENT '房间编号',
Soledte Datetime (8) NOT NULL COMMENT '订单日期',
Number INT (4) NOT NULL COMMENT '数量',
State nvarchar (2) NOT NULL COMMENT '状态',
Price smallmoney (4) NOT NULL COMMIT '价格'
)
[Err] 1064 - 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 'ORDER (
SoleId nvarchar (50) NOT NULL COMMENT '订单编号',
Userid nvarcha' at line 1
3 回答
已采纳
vicentia
TA贡献24条经验 获得超28个赞
CREATE TABLE ORDER4 (
SoleId nvarchar (50) NOT NULL COMMENT '订单编号',
Userid nvarchar (50) NOT NULL COMMENT '客户编号',
rid nvarchar (50) NOT NULL COMMENT '房间编号',
Soledte Datetime NOT NULL COMMENT '订单日期',
Number INT (4) NOT NULL COMMENT '数量',
State nvarchar (2) NOT NULL COMMENT '状态',
money double NOT NULL COMMENT '价格'
)
mysql 没有 没有货币类型,可用double代替,table名与关键字重复
添加回答
举报
0/150
提交
取消