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

          常用鏈接

          留言簿(14)

          隨筆檔案(6)

          文章分類(467)

          文章檔案(423)

          相冊(cè)

          收藏夾(18)

          JAVA

          搜索

          •  

          積分與排名

          • 積分 - 827240
          • 排名 - 49

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          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數(shù)據(jù)中為關(guān)鍵字



          posted on 2007-11-13 17:07 Ke 閱讀(1016) 評(píng)論(0)  編輯  收藏 所屬分類: exception
          主站蜘蛛池模板: 巴南区| 驻马店市| 韶山市| 水富县| 河北省| 武宣县| 扎赉特旗| 盈江县| 循化| 柳江县| 红桥区| 秦皇岛市| 洮南市| 平陆县| 临西县| 和林格尔县| 吴江市| 会昌县| 隆德县| 张掖市| 沾益县| 大埔县| 江西省| 吴桥县| 渭南市| 许昌县| 丰台区| 许昌市| 基隆市| 美姑县| 金乡县| 顺义区| 滕州市| 定边县| 嘉荫县| 龙海市| 百色市| 河东区| 海兴县| 新乐市| 巴林右旗|