1. 程式人生 > >mysql 按 in的順序返回資料

mysql 按 in的順序返回資料

sql記錄:

select  * from  district_location 

  where  id in (110109,110107,110106,110102)  

order by field(id,110109,110107,110106,110102)