Jankit Shah - Important notes
Technical skills turns into complexity and creativity turns into simplicity.
25 June 2009
Special ORDER BY handling without accepting any default sorting option of DB
select * from users where id in (11,10) order by field (id,11,10);
SELECT * FROM "comments" WHERE ("comments"."id" IN (1,3,2,4))
ORDER BY CASE "comments"."id"
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment