Hi, this is my code for now:
SELECT id, number
FROM Media
WHERE user = 10
ORDER BY id, number
but I want it to look like:
SELECT id, number
FROM Media
WHERE user = 10
ORDER BY while(number IS NULL), id
What I want to do is to have all number
that are NULL
on the top of the result, but as soon number
is not NULL
, sort by id
Is that possible?
I use php and mysql.