I am trying to get an ordered list of rows from my MYSQL database table based on the integer value "place".
SELECT * FROM mytable ORDER BY place;
This works fine, except that all rows with place = 0 should appear at the end of the table.
So if my table is:
name place ---- ----- John 1 Do 2 Eric 0 Pete 2
he must become:
name place ---- ----- John 1 Do 2 Pete 2 Eric 0
sql database mysql
Roalt
source share