mysql ranking according to field

Sentence writing:

 

select * from  coca_user a where a.integral>(select b.integral from coca_user b where b.bsid=? and b.integral!=0) and a.integral!=0

 explain:

    Query  the data that is larger than the integral field value of a, so as to know the ranking.

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326767425&siteId=291194637