create table order(
orderid int(4) primary key,
name varchar(32) not null,
finished int(4) not null,
cost decimal(4,2),
cardno varchar(16),
userid varchar(16) references user(userid),
statusid int(4) references orderstatus (statusid),
paywayid int(4) references payway(paywayid)
);
为什么我这条sql语句会出错啊?真是想了很久也不明白啊,错误1064!望高手解答
orderid int(4) primary key,
name varchar(32) not null,
finished int(4) not null,
cost decimal(4,2),
cardno varchar(16),
userid varchar(16) references user(userid),
statusid int(4) references orderstatus (statusid),
paywayid int(4) references payway(paywayid)
);
为什么我这条sql语句会出错啊?真是想了很久也不明白啊,错误1064!望高手解答
解决方案 »
- SQL脚本执行命令行窗口自动关闭
- 遇到一个多表查询匹配并写入其中一个表的问题。
- mysql上限问题
- 最好的mysql管理工具是什么呀?最好是中文的
- PostgreSQL的Function返回Select的结果集如何做?谢谢!
- 提一个可能大家认为简单的问题,不要见笑:如何用select取得表中第一个纪录
- last_insert_id()准确吗?(Java方面)
- mysql 联合查询
- 我遇到一个问题,就是我现在有一个数据是一天的,现在我想用mysql语言统计一天内相同IP的个数?我该怎么实现,烦请各位大牛指导,最好有完整的代码。
- MySQL报错
- 时间类型转换问题
- DECLARE continue handler for not found是什么意思 非要在过程中出现吗
create table `order`(
orderid int(4) primary key,
`name` varchar(32) not null,
finished int(4) not null,
cost decimal(4,2),
cardno varchar(16),
statusid int(4) references orderstatus(statusid),
paywayid int(4) references payway(paywayid)
);