• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

新手的第一次mysql

php 搞代码 3年前 (2022-01-23) 19次浏览 已收录 0个评论
文章目录[隐藏]

小弟看了那本《PHP和MySQL,Web开发》,今天刚看到数据库,照着代码抄了

本文#来源gaodai.ma#com搞##代!^码7网
搞代gaodaima码

一份sql脚本,准备用PHPMyadmin上传,但是报错如下,查了一个多小时愣是没弄懂错在哪,求助各位大神指点迷津啊。。。
代码如下:

create table customers{	customerid int unsigned not null auto_increment primary key,	name char(50) not null,	address char(100) not null,	city char(30) not null};create table orders{	orderid int unsigned not null auto_increment primary key,	customerid int unsigned not null,	amout float(6,2),	date date not null};create table books{	isbn char(13) not null primary key,	author char(50),	title char(50),	price float(4,2)};create table order_items{	orderid int unsigned not null,	isbn char(13) not null,	quantity tinyint unsigned,	primary key(orderid,isbn)};create table book_reviews{	isbn char(13) not null primary key,	review text};

回复讨论(解决方案)

小弟自己找到原因了,原来是{}应该换成(),汗颜哪,到底电子书字太小了看不清,哈哈,抱歉。。。


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:新手的第一次mysql
喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址