我希望有一个查询,根据一行中短语出现的次数对我的表进行排序。select * from table where paragraph like '%im%' order by (count of success like statement execute in row)
| paragraph | |hello im vahid|
_________________ ___________
正如您所看到的,我有一个方法,我想要计数密码有8和更多。但是它显示了异常描述:语法错误解析从Perdoruesi中选择COUNT(p),其中DATALENGTH(p.password) > 8. Query query = em.createQuery("SELECT COUNT(p) from Perdoruesi p where DATALENGTH(p.password) > 8");