Home > Database > Mysql Tutorial > body text

hql在mysql中查询出错

WBOY
Release: 2016-06-06 09:38:10
Original
1117 people have browsed it

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 就不会出现这种情况

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!