当前位置:网站首页>Gbase8s database select has order by Clause 5
Gbase8s database select has order by Clause 5
2022-06-29 12:18:00 【Like to eat radish ice cold】
Use the selection number
In the column name position , You can go to ORDER BY Clause , To quote listed in Projection Clause
The location of the items listed in the selection list of . You can also use the selection number to sort by expression .
The following example uses the selection number in a nested sort to follow the expression paid_date - order_date and customer_num row
order :
SELECT order_num, customer_num, paid_date - order_date
FROM orders
ORDER BY 3, 2;
When passed UNION or UNION ALL Keyword connection SELECT When the sentence is , Or when there are incompatible columns in the same location
With the same name , stay ORDER BY You need to select a number in the clause .
Press Rowid Sort
You can go to ORDER BY Clause ROWID keyword . This specifies rowid Column , In the table divided into slices and with WITH
ROWIDS Clause creates a hidden column in a partitioned table .rowid Columns contain unique internal records associated with rows in the table
Number .( However , It is recommended that you use the primary key as your access method , Instead of using rowid Column .)
If the table you are selecting from is one without rowid A partitioned table of columns , be ORDER BY Clause cannot specify rowid
Column .
When you are in ORDER BY Clause ROWID when , You don't need to be in Projection Clause includes ROWID The key
word .
To get information about rowid Values and how to use them in list expressions rowid Column for further information , see also WITH
ROWIDS Options and Use Rowid.
with DECLARE Of ORDER BY Clause
stay GBase 8s ESQL/C in , You may not use the with FOR UPDATE Clause DECLARE Statement to compare a cursor with no
ORDER BY Clause SELECT Statement .
stay ORDER BY Set index on column
When you are in SELECT The statement includes ORDER BY When clause , You can do this by ORDER BY Clause specifies one or more columns
Create indexes on columns to improve query performance . The database server uses your ORDER BY The index set on the column to be most efficient
To sort the query results . To learn more about how to create and ORDER BY The information of the index corresponding to the column of the clause ,
see also Use ASC and DESC Sort order options .
边栏推荐
- 百度云盘不限速下载大文件(2021-11亲测有效)
- ERP编制物料清单 金蝶
- Easy express: we use Zadig to realize 10000 times of construction and deployment, smart operation and maintenance, and release development productivity
- Numpy的ndarray数组基础
- 镜像漏洞扫描工具:Trivy
- 杰理之发起对耳配对、回连、开启可发现、可连接的轮循函数【篇】
- ERP编制物料清单 华夏
- 智能垃圾桶(四)——树莓派pico实现超声波测距(HC-SR04)
- Numpy's ndarray array Foundation
- 论文复现——AC-FPN:Attention-guided Context Feature Pyramid Network for Object Detection.
猜你喜欢

基于字节码的统一异常上报实践

MySQL 主从复制原理以及流程

What are outer chain and inner chain?

iMile 利用 Zadig 多云环境周部署千次,跨云跨地域持续交付全球业务

How to view saved passwords of websites

Go高级工程师必修课 | 真心建议你来听听,别错过~
![[VTK] MFC grid editor based on vtk8.2](/img/c5/d0f070ccb819fc682855319b7415e0.png)
[VTK] MFC grid editor based on vtk8.2

钛动科技:我们的 Zadig 落地之路

Pro test! Centos7 deploy PHP + spool

ArtBench:第一个类平衡的、高质量的、干净注释的和标准化的艺术品生成数据集
随机推荐
Embedded database development programming (IV) -- DDL, DML
模糊图片变清晰,一键双色图片,快速整理本地图片...这8个在线图片工具申请加入你的收藏夹!
杰理之关于 TWS 配对方式配置【篇】
2022 construction worker civil engineering direction general foundation (construction worker) theoretical question bank simulation test platform operation
GBase8s数据库在组合查询中的集合运算符
torch. Load load model error: can't get attribute 'VAE_ vc‘ on <module ‘__ main__‘ From 'xxxx() run file path‘
嵌入式数据库开发编程(四)——DDL、DML
GBase8s数据库select有ORDER BY 子句6
iMile 利用 Zadig 多云环境周部署千次,跨云跨地域持续交付全球业务
内插散点数据
爱可可AI前沿推介(6.29)
联想领像 lenovoimage 部分打印机 驱动 PPD 文件
【JUC系列】同步工具类之ThreadLocal
在校生的编程故事
Jericho's position on initiating the connection back to the opposite ear: 【 chapter 】
RepOptimizer: 其实是RepVGG2
AUTOCAD——文字显示方式、CAD怎么直接打开天正图纸
ERP preparation of BOM basis
Win11 web version
保障饮用水安全!番禺沙湾水道水质在线监测系统通过验收