postgresql取第一行数据_postgres 实现查询某条数据的排名
我就废话不多说了,大家还是直接看代码吧~select * from (select ROW_NUMBER () OVER (ORDER BY fat desc nulls last) AS xuhao,foodnum,foodname,fat from ek_food where isdel=0) food where foodnum = 'Ss192008'涉及到的问题1.排序时,字段值为nul...