Returning query results in predefined order

前端 未结 11 1010
温柔的废话
温柔的废话 2020-11-29 06:01

Is it possible to do a SELECT statement with a predetermined order, ie. selecting IDs 7,2,5,9 and 8 and returning them in that order, based on

11条回答
  •  自闭症患者
    2020-11-29 06:35

    You may need to create a temp table with an autonumber field and insert into it in the desired order. Then sort on the new autonumber field.

提交回复
热议问题