MySQL specify arbitrary order by id

前端 未结 3 2008
一向
一向 2020-12-17 18:49

Is it possible to specify an arbitrary order for a MySQL SELECT statement? E.g.,

SELECT * FROM table_name WHERE id IN (1, 3, 2, 9, 7) ORDER BY (         


        
3条回答
提交回复
热议问题