开发者

sql order by clause

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜