大家帮忙看一下这个hql到底有什么错误???

onizuka5211 2005-06-27 04:13:06
private static final String LOADctpRuleRouteList="select t1 form CtpRuleRoute as t1, CtpRule as t2 where t2.ctpid= ? and t1.serial >= (select c1.serial form CtpRuleRoute as c1,CtpRule as c2 where c1.rate= ? and c2.ctpid= ? order by c1.routeId ) order by t1.serial ";


包措是说未定义别名:c1,
undefined alias: c1 [select t1 form CtpRuleRout
e as t1, oss.rms.tranlogic.domain.CtpRule as t2 where t2.ctpid= ? and t1.serial
>= (select c1.serial form CtpRuleRoute as c1,oss.rms.tranlogic.domain.CtpRule
as c2 where c1.rate= ? and c2.ctpid= ? order by c1.routeId ) order by t1.serial
...全文
49 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
jxdn_yang 2005-06-27
  • 打赏
  • 举报
回复
private static final String LOADctpRuleRouteList="select t1 form CtpRuleRoute as t1, CtpRule as t2 where t2.ctpid= ? and t1.serial >= (select CtpRuleRoute .serial form CtpRuleRoute as c1,CtpRule as c2 where c1.rate= ? and c2.ctpid= ? order by c1.routeId ) order by t1.serial ";

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧