Task: selecting specified record in top of results list
my ugly variant:
(select * from mytable where id = 42)
union all
(select * from mytable where id != 42 order by id)
besides of ansi query variant for mysql is also would be very interesting to me
There is no difference between ANSI and vendor SQL solutions
Note: there is no guaranteed or implied order to a table or SELECT without an ORDER BY clause