首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

HQL中这样写对吗?select distinct stu,tea,cou from Student as stu,Teacher as tea,Course解

2012-06-02 
HQL中这样写对吗?select distinct stu,tea,cou from Student as stu,Teacher as tea,CourseHQL中这样写对

HQL中这样写对吗?select distinct stu,tea,cou from Student as stu,Teacher as tea,Course
HQL中这样写对吗?select distinct stu,tea,cou from Student as stu,Teacher as tea,Course as cou where ......

[解决办法]
hql语句貌似不能用distinct ,跟sql还是有区别的
[解决办法]
不能用distinct,我测试过了!之前我也遇到这样的问题!
[解决办法]
放弃HQL 用executeSQLQuery 执行SQL 自己封装VO

热点排行