mysql字段值为null时排序问题

it2022-05-05  121

 -- DESC 降序时候默认null值排在后面、ASC升序时默认null值排在前面,可使用 IS NULL处理

   ORDER BY score desc,gmPrice IS NULL,gmPrice,avg_time IS NULL,avg_time

 

转载于:https://www.cnblogs.com/sung1024/p/11171723.html

相关资源:各显卡算力对照表!

最新回复(0)