文章详情页
数据库 - mysql 创建表错误
浏览:178日期:2022-06-20 11:47:10
问题描述
在mysql中使用语句:creat table bookborrow(id int(10) NOT NULL AUTO_INCREMENT,readerid int(10),bookid int(10),borrowtime date,backtime date,operator varchar(30),ifback tinyint(1),PRIMARY KEY (id));
创建表时,提示错误:
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 ’creat table bookborrow(id int(10) NOT NULL AUTO_INCREMENT,readerid int(10),’ at line 1
问题解答
回答1:是create不是creat英语基础不够扎实啊,或者是你一时犯的错误。
相关文章:
1. Java中main方法里面的参数一定要是String []args吗?2. javascript - node.js中stat() access() open() readFile()都能判断文件是否存在?3. css - 如何讓圖片像雲一樣的行為?4. html5 - 目前 公司App 嵌入H5页面 做个 手机支付功能 没有做过 所以 请求各位有经验的 给个思路5. phpstudy的mysql服务不能启动,但手动去bin目录下运行mysqld.exe正常6. node.js - Nodejs微信开发,视频上传成功,但是不返回给用户7. javascript - js 多维数组的问题8. css3 - CSS优先级问题9. html - 关于CSS实现border的0.5px设置?10. mysql - sql 左连接结果union右连接结果,导致重复性计算怎么解决?
排行榜
![Java中main方法里面的参数一定要是String []args吗?](http://www.haobala.com/attached/image/5.jpg)
网公网安备