後臺報SQL Error: 1064, SQLState: 42000錯誤
阿新 • • 發佈:2019-02-19
Hibernate: select this_.name as name3_0_, this_.descn as descn3_0_,[color=red] this_.[value][/color] as valuev3_3_0_ from SYSVARS this_
[2011-03-29 09:27:15,655] - [WARN ] [org.hibernate.util.JDBCExceptionReporter] SQL [color=red]Error: 1064, SQLState: 42000[/color]
[2011-03-29 09:27:15,655] - [ERROR] [org.hibernate.util.JDBCExceptionReporter] 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 '[valuev] as valuev3_3_0_ from SYSVARS this_' at line 1
[2011-03-29 09:27:15,725] - [ERROR] [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/ms]] action: null
[color=red]MSSQL的專案遷移到MYSQL的過程中遇到的一個問題:[/color]原因是表sysvars的value列,sysvar類:對應關係註解:@Column(name = "[value]", unique = false, nullable = false, insertable = true, updatable = true, length = 50) 不知道為什麼value加了[]導致找不到該列,原來在MSSQL上可以並且好像是專門加上[]的,未經驗證,初步懷疑是關鍵字問題!
[2011-03-29 09:27:15,655] - [WARN ] [org.hibernate.util.JDBCExceptionReporter] SQL [color=red]Error: 1064, SQLState: 42000[/color]
[2011-03-29 09:27:15,655] - [ERROR] [org.hibernate.util.JDBCExceptionReporter] 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 '[valuev] as valuev3_3_0_ from SYSVARS this_' at line 1
[2011-03-29 09:27:15,725] - [ERROR] [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/ms]] action: null
[color=red]MSSQL的專案遷移到MYSQL的過程中遇到的一個問題:[/color]原因是表sysvars的value列,sysvar類:對應關係註解:@Column(name = "[value]", unique = false, nullable = false, insertable = true, updatable = true, length = 50) 不知道為什麼value加了[]導致找不到該列,原來在MSSQL上可以並且好像是專門加上[]的,未經驗證,初步懷疑是關鍵字問題!