项目中写hql语句 出现 ORA-01791: 不是 SELECTed 表达式问题。
语句如下:
select distinct(name) where student order by number
 这样就会报错。
原因是:
  SELECT语句中含有DISTINCT关键字或者有运算符时,排序用字段必须与SELECT语句中的字段相对应。
 

相关文章:

  • 2022-12-23
  • 2021-10-14
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2021-06-13
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
相关资源
相似解决方案