I need the output to be ordered in the same order as the parameters, in a query MySql it would look like this
SELECT * FROM your_table
WHERE id IN (5,2,6,8,12,1)
ORDER BY FIELD(id,5,2,6,8,12,1);
How can I do it using the prism?
I need the output to be ordered in the same order as the parameters, in a query MySql it would look like this
SELECT * FROM your_table
WHERE id IN (5,2,6,8,12,1)
ORDER BY FIELD(id,5,2,6,8,12,1);
How can I do it using the prism?