文章详情页
数据库 - mysql 创建表错误
浏览:196日期: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. 网页爬虫 - python爬虫用BeautifulSoup爬取<s>元素并写入字典,但某些div下没有这一元素,导致自动写入下一条,如何解决?2. mysql中datetime列如何做筛选?3. 网页爬虫 - 关于Python的编码与解码问题4. mysql - SQL添加记录的数据来源于同一个表5. angular.js使用$resource服务把数据存入mongodb的问题。6. javascript - vue中input的blur影响了下拉的点击事件如何解决7. mysql sql where id in(25,12,87) 结果集如何用按照 25 12 87排序?8. linux - 为什么我在mysql的my.cnf下找不到bind-address?9. mysql - phpMyAdmin无法导入数据10. javascript - 图片请求失败怎么去掉左上角的小图标?
排行榜

网公网安备