在SQL表中对行值进行排序? [英] Sort the row value in SQL table?

查看:196
本文介绍了在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, because N1 field does not contain values of {4, 4}.

To sort data use ORDER BY[^] clause.


这篇关于在SQL表中对行值进行排序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆