隨筆 - 6  文章 - 129  trackbacks - 0
          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿(14)

          隨筆檔案(6)

          文章分類(467)

          文章檔案(423)

          相冊

          收藏夾(18)

          JAVA

          搜索

          •  

          積分與排名

          • 積分 - 827218
          • 排名 - 49

          最新評論

          閱讀排行榜

          評論排行榜

          Hibernate: insert into book (catalogId, publishId, subjectId, bookNO, bookName, synopsis, price, discount, publishTime, picture, hit, show, updateTime, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
          WARN - SQL Error: 1064, SQLState: 42000
          ERROR - 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 'show, updateTime, id) values ('2c9ab2d51637c2ca0116380396f80009', '2c9ab2d516382' at line 1
          ERROR - Could not synchronize database state with session
          org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
              at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:65)
              at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
              at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:202)
              at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:230)
              at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
              ... 144 more
          ERROR - Servlet.service() for servlet default threw exception
          java.sql.BatchUpdateException: 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 'show, updateTime, id) values ('2c9ab2d51637c2ca0116380396f80009', '2c9ab2d516382' at line 1
              at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1103)
              at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:853)
              at org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297)
             ........
              at java.lang.Thread.run(Thread.java:595)

          原因:show 在mysql數據中為關鍵字



          posted on 2007-11-13 17:07 Ke 閱讀(1016) 評論(0)  編輯  收藏 所屬分類: exception
          主站蜘蛛池模板: 兰考县| 渝中区| 双城市| 吉安市| 高阳县| 江孜县| 通道| 克山县| 杭州市| 钟山县| 渭南市| 东乡族自治县| 中西区| 龙陵县| 浦北县| 三江| 海南省| 尉氏县| 天津市| 自治县| 台前县| 成安县| 蓬安县| 浮山县| 乃东县| 新干县| 宾川县| 衢州市| 思南县| 彩票| 开封县| 湄潭县| 尼勒克县| 孟津县| 宜章县| 郴州市| 靖西县| 广昌县| 黄山市| 闸北区| 乌拉特后旗|