Skip to main content
1 de 2
bruno
  • 7,4mil
  • 14
  • 24

Pode usar o operador FIELD

SELECT * 
  FROM pedidos 
 WHERE id IN (1,3,4,2)
ORDER BY FIELD(id, 1, 3, 4, 2)
bruno
  • 7,4mil
  • 14
  • 24