Navicat 15.0.11 Mariadb 報錯:1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'insert into reg(loginname, name,password) values ('tom','tom','tom')' at line 2, Time: 0.000000s

陳述句:
select * from reg
insert into reg(loginname, name,password) values ('tom','tom','tom')
官方檔案查詢:https://mariadb.com/kb/en/mariadb-error-codes/#shared-mariadbmysql-error-codes

更改:
select * from reg;
insert into reg(loginname, `name`,`password`) values ('tom','tom','tom');

問題解決啦!
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/60497.html
標籤:應用實例
上一篇:用下面的scanf函式輸入資料,問在鍵盤上如何輸入使a=10,b=20
下一篇:求解
