开发者

sql order by clause

开发者 https://www.devze.com 2023-03-10 09:32 出处:网络
Ok so in my database I have, 开发者_StackOverflow中文版 1,2,3,4 But what I really want is, 2,1,4,3.

Ok so in my database I have,

开发者_StackOverflow中文版

1,2,3,4

But what I really want is,

2,1,4,3.

so how do I order a column against a predefined set of sequence of strings or values?


Create a order by column, and order the results based on that.

0

精彩评论

暂无评论...
验证码 换一张
取 消