If you have a list of ordered ids and you want to turn them into an ordered result set you can use FIELD() in mysql:
SELECT * FROM addons
ORDER BY FIELD(id, 3, 5, 9, 1);
If you have a list of ordered ids and you want to turn them into an ordered result set you can use FIELD() in mysql:
SELECT * FROM addons
ORDER BY FIELD(id, 3, 5, 9, 1);
Howto upgrade your postgresql-8.3 to postgresql-9.0 Read More
Перекопав документацію та код django 1.0 та 1.1, зрозумів що можилвості вказувати схему на кожну модель немає, знайшов просте вирішення проблеми Read More
Comments