文章詳情頁
數(shù)據(jù)庫 - mysql 創(chuàng)建表錯(cuò)誤
瀏覽:88日期: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));
創(chuàng)建表時(shí),提示錯(cuò)誤:
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英語基礎(chǔ)不夠扎實(shí)啊,或者是你一時(shí)犯的錯(cuò)誤。
相關(guān)文章:
1. 數(shù)據(jù)庫 - mysql中有沒查看數(shù)據(jù)大小的函數(shù)??2. 老師 我是一個(gè)沒有學(xué)過php語言的準(zhǔn)畢業(yè)生 我希望您能幫我一下3. PHP單例模式4. nginx 504 Gateway Time-out 請問如何設(shè)置5. python - flask _sqlalchemy 能否用中文作為索引條件6. 導(dǎo)入數(shù)據(jù)庫不成功7. Thinkphp 下載地址找不到了?8. mysql如何配置遠(yuǎn)程php外網(wǎng)鏈接數(shù)據(jù)庫9. index.php錯(cuò)誤,求指點(diǎn)10. mysql如何判斷數(shù)據(jù)不存在則插入呢?
排行榜

熱門標(biāo)簽