select * from table order by ID='5' DESC, ID='2' DESC, ID='10' DESC;
agile agile.
Poi lo limiti con LIMIT=5
L'ho trovato in questa pagina:
http://dev.mysql.com/doc/mysql/en/sorting-rows.html
select * from table order by ID='5' DESC, ID='2' DESC, ID='10' DESC;
agile agile.
Poi lo limiti con LIMIT=5
L'ho trovato in questa pagina:
http://dev.mysql.com/doc/mysql/en/sorting-rows.html
...