首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

出现以下错误是那里出有关问题了

2012-02-03 
出现以下异常是那里出问题了信息: Not binding factory to JNDI, no JNDI name configuredorg.hibernate.i

出现以下异常是那里出问题了
信息: Not binding factory to JNDI, no JNDI name configured
org.hibernate.impl.SessionFactoryImpl@d81784
Hibernate: 
  insert 
  into
   
  order (name
  , cost) 
values
  (?, ?)
2011-12-5 18:15:39 org.hibernate.util.JDBCExceptionReporter logExceptions
警告: SQL Error: 1064, SQLState: 42000
2011-12-5 18:15:39 org.hibernate.util.JDBCExceptionReporter logExceptions
严重: 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 'order (name, cost) values ('22', 30.0)' 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 near 'order (name, cost) values ('22', 30.0)' at line 1
这俩个单引号可疑,检查写的sql语句格式。

热点排行