mysql in 排序

SELECT * FROM my_table WHERE id IN (30, 20, 80, 40) ORDER BY FIELD(id, 30, 20, 80, 40);table

相關文章
相關標籤/搜索