我有一个关于订购我的 SQL 表的问题。我已经尝试了几件事,但找不到我想要的解决方案。
我的表如下所示:
username childs+pets childs pets
=======================================
Max 1 1
Nico 3 1 2
Lewis 2 2
Daniel 2 1 1
我想按 childs+pets (ASCending) 排序我的表,但我想将带有空字段的记录 (Max 和 Lewis) 放在表的底部。结果是:
username childs+pets childs pets
=======================================
Nico 3 1 2
Daniel 2 1 1
Lewis 2 2
Max 1 1
谁能帮我?