在SQL表中对行值进行排序? [英] Sort the row value in SQL table?
本文介绍了在SQL表中对行值进行排序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的数据库表我要对此表进行排序..
This is my database table I want to sort this table..
N1 N2 N3 N4
1 2 3 4
3 4 2 4
我希望上表排序顺序..
I want the above table in sorting order..
N1 N2 N3 N4
4 3 2 1
4 4 3 2
怎么可能请帮帮我...
How it can be possible Please help me...
推荐答案
按预期得到结果是不可能的,因为N1
字段不包含值{4,4}
。
要对数据进行排序,请使用ORDER BY [ ^ ]子句。
It's impossible to get result as you expected, becauseN1
field does not contain values of{4, 4}
.
To sort data use ORDER BY[^] clause.
这篇关于在SQL表中对行值进行排序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文