我喜欢这个如何使用Spring Data @query注释从mysql数据库中仅提取80行?
@Query("select cnt from Content cnt order by
CASE WHEN cnt.status = 'rejected' THEN '1'
WHEN cnt.status = 'modified' ELSE cnt.status END ASC")
查询如何添加限制0,100行加我query
?
我写了下面的格式,但所有行database
获取
@Query("select cnt from Content cnt
order by CASE WHEN cnt.status = 'rejected' THEN '1'
WHEN cnt.status = 'modified' ELSE cnt.status END ASC limit 0,100")