select w.id, w.name , x.name , w.xs , w.skzxs , w.fd , w.skmc , w.skzy , w.zc , w.bz
from Wj w ,Xb x
where w.id not in(
select t.id
from (
select w.id ,w.name ,count(distinct w.name)
from Wj w
where w.xn='"+this.getXn()+"' and w.xq='"+this.getXq()+"' and w.qh='"+this.getQh()+"' group by w.name
) t
)
and w.xn='"+this.getXn()+"' and w.xq='"+this.getXq()+"' and w.qh='"+this.getQh()+"' and w.xb=x.id
order by w.name
hql语句
报错
nested exception is org.hibernate.hql.ast.QuerySyntaxException: unexpected token求解,该如何解决
from Wj w ,Xb x
where w.id not in(
select t.id
from (
select w.id ,w.name ,count(distinct w.name)
from Wj w
where w.xn='"+this.getXn()+"' and w.xq='"+this.getXq()+"' and w.qh='"+this.getQh()+"' group by w.name
) t
)
and w.xn='"+this.getXn()+"' and w.xq='"+this.getXq()+"' and w.qh='"+this.getQh()+"' and w.xb=x.id
order by w.name
hql语句
报错
nested exception is org.hibernate.hql.ast.QuerySyntaxException: unexpected token求解,该如何解决
解决方案 »
- 求教。关于weblogic运行时报错,之后就连接不上数据库的问题。
- hibernate 存储过程出错
- 文法的表示及语言中句子的判定,数据结构,编译原理牛的进!!
- hibernate与mysql开发中的问题?
- osworkflow是否支持split后的step间XOR操作,有人实现过这个功能吗?
- 怎么解决MyEclipse + hibernate中的异常
- dom方式解析xml关键点
- hibernate的主键设置问题!急!
- 一定要问:JBOSS的JAVA_HOME问题,郁闷啊!
- 一个关于导致cpu100%问题
- s2sh+quartz 一直报空指针错误,请各位好人来帮忙指点下!!!!
- 插入数据出现的异常问题
这是因为hql查询语句
select * from Users u
from之后必须要是实体