this is my code:
SELECT id, number FROM Media WHERE user = 10 ORDER BY id, number
but I want it to look like this:
SELECT id, number FROM Media WHERE user = 10 ORDER BY while(number IS NULL), id
I want all number be NULL at the top of the result, but as soon as number not NULL , sort by id
Is it possible?
I am using mysql.
mysql
Johan
source share