ORDER BY FIELD not working
發表於 : 2016-11-02 23:33:11
http://stackoverflow.com/questions/1156 ... or-message
ORDER BY FIELD(
FIELD 及 刮號中間不能有空白
代碼: 選擇全部
SELECT pts_name
FROM products_tecspecs
WHERE pts_id IN ( 5275, 21, 5276, 5277,
5278, 49, 5279 )
ORDER BY FIELD(pts_id, 5275, 21, 5276, 5277, 5278, 49, 5279)
FIELD 及 刮號中間不能有空白