区块链收割机 2015-06-14 03:32 采纳率: 0%
浏览 1485

用SSH SQL语句错误哪里有错呢

select this_.pid as pid2_0_,
this_.pname as pname2_0_,
this_.market_price as market3_2_0_,
this_.shop_price as shop4_2_0_,
this_.image as image2_0_, this_.pdesc as pdesc2_0_,
this_.is_hot as is7_2_0_, this_.pdate as pdate2_0_,
this_.csid as csid2_0_ from product this_ where this_.is_hot=? order by this_.pdate desc];
nested exception is org.hibernate.exception.SQLGrammarException: could not execute query
org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query;

SQL [select this_.pid as pid2_0_,
this_.pname as pname2_0_,
this_.market_price as market3_2_0_,
this_.shop_price as shop4_2_0_,
this_.image as image2_0_,
this_.pdesc as pdesc2_0_,
this_.is_hot as is7_2_0_,
this_.pdate as pdate2_0_,
this_.csid as csid2_0_ from product this_ where this_.is_hot=? order by this_.pdate desc];
nested exception is org.hibernate.exception.SQLGrammarException: could not execute query

  • 写回答

5条回答 默认 最新

  • 区块链收割机 2015-06-14 03:33
    关注

    Hibernate:
    select
    this_.pid as pid2_0_,
    this_.pname as pname2_0_,
    this_.market_price as market3_2_0_,
    this_.shop_price as shop4_2_0_,
    this_.image as image2_0_,
    this_.pdesc as pdesc2_0_,
    this_.is_hot as is7_2_0_,
    this_.pdate as pdate2_0_,
    this_.csid as csid2_0_
    from
    product this_
    where
    this_.is_hot=?
    order by
    this_.pdate desc limit ?
    11:27:56,588 WARN JDBCExceptionReporter:233 - SQL Error: 933, SQLState: 42000
    11:27:56,589 ERROR JDBCExceptionReporter:234 - ORA-00933: SQL 命令未正确结束

    评论

报告相同问题?

悬赏问题

  • ¥15 目详情-五一模拟赛详情页
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line