原文:報錯--->java.sql.SQLSyntaxErrorException: 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 'delect from testd

報錯 gt java.sql.SQLSyntaxErrorException: 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 delect from testdb.test whe ...

2020-07-06 19:26 0 1511 推薦指數:

查看詳情

SQL語句報錯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

報錯如圖: 最開始其實我的列名tname和tsubject分別叫name和subject,后來看到網上有說這個報錯可能是數據庫建表的時候使用了mysql的關鍵詞,我就只把name改了。后來還是這個問題,百思不得其解。 后來同學告訴我說老師幫她檢查SQL語句的問題時都是把php程序里的SQL ...

Sun Jun 16 08:20:00 CST 2019 0 11455
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM