I have a list of IDs from Lucene Search engine and want to select these IDs from database in specific order (score).
Can I do that in SQL query? It seems like h2 doesn't know ORDER BY FIELD(id, <list,of,ids>) function - Function "FIELD" not found.
Thank you.
SELECT * FROM table WHERE id IN (3,1,2,4) ORDER BY FIELD(id, 3,1,2,4);