/ Published in: SQL

Similar to "FIND_IN_SET" from MySQL.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
SELECT Name FROM People WHERE Name IN ('Bob', 'Mary', 'Joe') ORDER BY CASE Name WHEN 'Mary' THEN 1 WHEN 'Joe' THEN 2 WHEN 'Bob' THEN 3 END
Comments
