当前位置:网站首页>2021-06-03数据库查询----排序
2021-06-03数据库查询----排序
2022-07-22 18:09:00 【DrMaker】
数据库查询----排序
为了方便查看数据,可以对数据进行排序
语法:
select * from 表名 order by 列1 asc|desc [,列2 asc|desc,...]
说明:
将行数据按照列1进行排序,如果某些行列1的值相同时,则按照列2排序,以此类推
默认按照列值从小到大排列(asc)
asc从小到大排列,即升序
desc从大到小排序,即降序
边栏推荐
猜你喜欢

2021-10-25 Boostrap-treeview组件节点数目过多搜索后如何跳转?

Freshman summer internship Day5_ two

OpenGL create a new window

创建企业wiki,你需要知道这些

Vrtk function teaching (II): unity3dvrtk handle blinking and UI interactive ray switching function - 3D model ray interactive switching - line and curve switching

电影推荐系统

课后练习02---某城市电话号码

How to use fmetp steam V2 (II)

软件测试流程

Freshman summer internship Day5_ one
随机推荐
ImageView realizes zoom, pan and fling
How to use fmetp steam V2 (I)
The 3dui or model in unity is always facing the camera, rotating with the camera's angle of view and following the fixed angle of view
按照是否查看原代码划分: 白盒测试和黑盒测试
Unity create FPS monitoring
Configure basic Pico development
Building wheel for hdbscan (pyproject.toml) did not run successfully.
Vscode environment configuration management
Print all the words in the string array -- the story of pointer and string
2021-10-25 Boostrap-treeview组件节点数目过多搜索后如何跳转?
队列的基本操作
appium自动化测试,实例分享
游戏暂停
PTP北斗授时服务器(卫星时钟服务器)助力高考信息化系统
jmeter压力测试指标解释
深入浅出掌握接口自动化-01
Windows下编译安装Redis-6.2.5
软件生命周期---W模型
【黄啊码】MySQL入门—1、SQL 的执行流程
2021-10-25 how to jump after searching for too many boost treeview component nodes?