对sql不熟,以为desc这个条件要放到最后,但是在分页的情况下,要放到limit之前
报错
Cause: java.sql.SQLSyntaxErrorException: Table 'oo' from one of the SELECTs cannot be used in field list
; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Table 'oo' from one of the SELECTs cannot be used in field list
可能是因为按id降序不需要oo.id
表示,直接用id就可以