当前位置:网站首页>GBase8s数据库select有ORDER BY 子句
GBase8s数据库select有ORDER BY 子句
2022-06-29 11:28:00 【爱吃萝卜冰冰凉】
ORDER BY 子句按指定的列或表达式对查询结果排序;
ORDER BY 子句表明该查询返回多行。在 SPL 中,如果您指定 ORDER BY 子句而没有
FOREACH 循环来处理 SPL 例程之内单个地返回的行,则数据库服务器发出错误。
下列查询在 FROM 子句中指定派生的表,按照 col1 值对其行排序,并声明 vtab 作为派生的表的
名称,且 vcol 作为其唯一列的名称:
SELECT vcol FROM
(SELECT FIRST 5 col1 FROM tab1 ORDER BY col1) vtab(vcol);
在 NLSCASE INSENSITIVE 数据库中的 ORDER BY
在以 NLSCASE INSENSITIVE 属性创建的数据库中,对 NCHAR 或 NVARCHAR 数据类型的列
和表达式的操作不区分大写字母和小写字母。因此,包括 ORDER BY 子句的查询可能以不管变量
的字母大小写的序列返回行,如果该列或表达式为 NLS 数据类型,且该数据包括仅字母大小写不
同的值。
如果数据集包括同一字符串的字母大小写变量,则按重复来处理这些,带有按它们的检索顺序罗列
的大小写变量。例如,被处理为重复的一系列 NCHAR 或 NVARCHAR 字符串可能按此顺序出
现:
gAMma
GAmma
GaMMa
gamma
GAMMA
要获取更多信息,请参阅 在 NLSCASE INSENSITIVE 数据库中重复的行 和 在区分大小写的数据
库中的 NCHAR 和 NVARCHAR 表达式。
边栏推荐
- Unified exception reporting practice based on bytecode
- Jerry's configuration of TWS cross pairing [chapter]
- 当技术人成长为 CEO,应该修改哪些“Bug”?
- Numpy's ndarray array Foundation
- Matlab GUI realizes the function of clicking the button, opening the file dialog box and importing pictures
- matlab fmincon 精度,fmincon与quadprog误差
- 哈希Hash竞猜游戏系统开发详解技术丨哈希竞猜游戏系统开发方案解析
- Introduction to software engineering - Chapter 5 - overall design
- GBase8s数据库INTO TEMP 子句创建临时表来保存查询结果。
- Equals increases execution speed / performance optimization
猜你喜欢

When a technician becomes a CEO, what "bugs" should be modified?

&3 在浏览器中查看请求报文和响应报文

Introduction to software engineering - Chapter 5 - overall design
![Jerry's about TWS pairing mode configuration [chapter]](/img/c8/d78e817295169753244299545d9aba.png)
Jerry's about TWS pairing mode configuration [chapter]

Unified exception reporting practice based on bytecode

又一所“省会大学”,来了!
![[VTK] MFC grid editor based on vtk8.2](/img/c5/d0f070ccb819fc682855319b7415e0.png)
[VTK] MFC grid editor based on vtk8.2

Pytoch - distributed communication primitive (with source code)

Rebuild confidence in China's scientific research - the latest nature index 2022 released that China's research output increased the most

初次使用 eolink 感受
随机推荐
mysql截取字符串去重,mysql 截取字符串 去重 拼接
C语言##__VA_ARGS__的用法
当技术人成长为 CEO,应该修改哪些“Bug”?
杰理之关于 TWS 配对方式配置【篇】
Jerry's manual pairing method [chapter]
Jerry's about TWS pairing mode configuration [chapter]
Li Kou daily question - day 31 -13 Maximum perimeter of triangle
恒泰证券开户安全吗 证券排名
Pytorch - 分布式通信原语(附源码)
Information technology application and innovation professionals (database) intermediate training hot enrollment (July 6-10)
How do I open an account now? Is there a faster and safer opening channel
杰理之关于开机发起回连对耳的位置:【篇】
文件包含之日志中毒(User-Agent)
Equals increases execution speed / performance optimization
钛动科技:我们的 Zadig 落地之路
win11网页版
MariaDB的安装与配置
基于字节码的统一异常上报实践
matlab fmincon 精度,fmincon与quadprog误差
Imile uses Zadig's multi cloud environment to deploy thousands of times a week to continuously deliver global business across clouds and regions