Home  >  Article  >  Database  >  hql在mysql中查询出错

hql在mysql中查询出错

WBOY
WBOYOriginal
2016-06-06 09:38:101118browse

mysqlhqlhibernate

今天遇到一个非常奇怪的问题,mysql数据库,hibernate注解配置表,
from Wxyhdtb where zt=1 and wxyh.id=1 order by wxyh.id
测试发现在where条件中wxyh.id会出错,Unknown column 'wxyh.id' in 'where clause',但是只在order by wxyh.id却没有问题 ,请问这是什么情况?
注:以前用oracle 就不会出现这种情况

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn