java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax 錯誤java
錯誤詳情:sql
Caused by: 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 'interval, is_loop, remarks, standard_id' at line 1
本覺得是我插入傳參用swagger示例傳入的有問題,正兒八經寫參數仍是如此。數據庫
出現此錯誤爲:數據庫字段存在關鍵字,表中的字段不可與SQL中的關鍵字相同(本次我遇到的問題interval是SQL中的關鍵字)oop
或 數據庫字段不匹配,語法錯誤 等引發的錯誤spa
只需檢查數據庫和sql語句便可解決!code