1. 程式人生 > >CHECK the manual that corresponds TO your MySQL SERVER VERSION FOR the RIGHT syntax TO USE near.....

CHECK the manual that corresponds TO your MySQL SERVER VERSION FOR the RIGHT syntax TO USE near.....

使用spingdata+jpa+hibernate來對資料庫進行插入操作的時候,出現了一個報錯資訊,說sql語法有誤。報錯資訊如下:

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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......

這就很奇怪了,通過orm框架向資料庫中儲存資料,sql是框架自動生成的,不應該有錯啊。後來經過仔細檢視,才發現是因為我的實體名字是order,並且沒有指定存入資料庫時資料庫的名字。那麼資料庫對應的表明預設就是order。但是又有mysql裡面有order關鍵字,所以就產生了上面的衝突。在@Entity裡面另外指定一個數據庫的表名就好了。比如@Entity(name=”t_order”)。花了一個小時的時間才找到問題的原因,記錄一下。

相關推薦

關於check the manual that corresponds to your MySQL server version for the right syntax to use near

mysql今天在更新表的時候一直提示check the manual that corresponds to your MySQL server version for the right syntax to use near問題排查很久,數據庫版本沒有問題,語法也沒有問題,卻一直報錯最後排查發現是關鍵詞沖突

MySQL check the manual that corresponds to your MySQL server version for the right syntax錯誤

bat sqli jdbc call wrap base defaults org dsta 今配置Mybatis框架測試的時候報了這個錯:以下是錯誤的信息:org.apache.ibatis.exceptions.PersistenceException: ### Err

解決ROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use n

之前一直用的好好的,突然就出現了這個錯誤: ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the rig

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 'grou

mysql8.0版本  在已存在的表裡插入一條資料 insert INTO api_user(id,username,email,groups)VALUES('1','hh','[email protected]','Boss'); 執行報錯:1064 - You have an e

check the manual that corresponds to your MySQL server version for the right syntax to use near ###

報錯如下: pymysql.err.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version

myBatis查詢報錯 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

myBatis查詢報錯    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

check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYP

建立QUARTZ表時出現如下的問題 CREATE TABLE QRTZ_JOB_DETAILS( JOB_NAME VARCHAR(80) NOT NULL, JOB_GROUP VARCHAR(80) NOT NULL, DESCRIPTION VAR

CHECK the manual that corresponds TO your MySQL SERVER VERSION FOR the RIGHT syntax TO USE near.....

使用spingdata+jpa+hibernate來對資料庫進行插入操作的時候,出現了一個報錯資訊,說sql語法有誤。報錯資訊如下: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Yo

ssh開發中插入資料時遇到 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right

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 'use

check the manual that corresponds to your MySQL server version for the right syntax錯誤

昨天晚上,用Hibernate做多對多對映,然後測試,結果直接報check the manual that corresponds to your MySQL server version for the right syntax to use near 'Order (m

MySQLcheck the manual that corresponds to your MySQL server version for the right syntax

今天重新搞了一下JDBC,然後在寫程式碼的時候遇到了一個蛋疼的問題,糾結了很久,丟擲的異常如下: 資料庫連線成功![email protected] com.mysql.jdbc.e

check the manual that corresponds to your MySQL server version for the right syntax to use near '..'

[School InFormatization -->]-->ERROR{SchemaUpdate.java:212}-Unsuccessful: create table group (

check the manual that corresponds to your MySQL server version for the right syntax的解決方法

  我在匯入一組資料後,進行查詢相關操作總是遇到check the manual that corresponds to your MySQL server version for the right syntax的提示。明明寫的格式也是對的但就是總報這個提示,百思不得其解

your MySQL server version for the right syntax to use near 'NULL' at line 1

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use ne

linux mysql----You have an error in your SQL syntax; check the manual that corresponds to your MySQL

Mysql 語句毛病 (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

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server

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 MyBatis中踩到

mysql建立資料庫報錯You have an error in your SQL syntax; check the manual that corresponds to your MySQL se

在使用xshell遠端連線我的伺服器時想建立一個數據庫 結果執行不對,sql語句如下 mysql> create database 'wechatmall'; 結果出現mysql報錯,這個提示很明顯是sql語句有問題 You have an e

:“You have an error in your SQL syntax; check the manual that corresponds to your MySQL server versi

今天用C#連線資料庫的時候,想把欄位名改成中文,結果就報這個錯誤了,:“You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server versio

Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to you

Error Code : 1064 You have an error in your SQL syntax; check the manual that corresponds to your My

轉自:https://blog.csdn.net/haha_66666/article/details/78444457 Query : select * from order LIMIT 0, 1000 Error Code : 1064 You have an error in your