当前位置:网站首页>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 表达式。
边栏推荐
- TTChat x Zadig 开源共创 Helm 接入场景,环境治理搞得定!
- 助力极致体验,火山引擎边缘计算最佳实践
- Titanium dynamic technology: our Zadig landing Road
- Rebuild confidence in China's scientific research - the latest nature index 2022 released that China's research output increased the most
- 现在怎么开户?有没有更快又安全的开通渠道
- 谷粒商城项目
- 毕业5年,我问遍了身边的大佬,总结了他们的学习方法
- 大家有没有觉得学机械的人很可怕?
- 2022年资料员-岗位技能(资料员)操作证考试题库及模拟考试
- 智能垃圾桶(四)——树莓派pico实现超声波测距(HC-SR04)
猜你喜欢

Numpy的ndarray数组基础

助力极致体验,火山引擎边缘计算最佳实践
![Jerry's about TWS channel configuration [chapter]](/img/2c/58a49dea7a7931c4d1f055548c2493.png)
Jerry's about TWS channel configuration [chapter]

Oracle netsuite helps TCM bio understand data changes and make business development more flexible

Sofaregistry source code | data synchronization module analysis

Embedded database development programming (IV) -- DDL, DML

When you are young, you should be awake to fight, and when you are young, you should have the courage to try

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

Wonderful! Miaoying technology fully implements Zadig to help container construction, and fully embraces kubernetes and Yunyuan

SOFARegistry 源码|数据同步模块解析
随机推荐
Pytorch - 分布式通信原语(附源码)
论文复现——AC-FPN:Attention-guided Context Feature Pyramid Network for Object Detection.
哈希Hash竞猜游戏系统开发详解技术丨哈希竞猜游戏系统开发方案解析
保障饮用水安全!番禺沙湾水道水质在线监测系统通过验收
Introduction to software engineering - Chapter 5 - overall design
ShanDong Multi-University Training #3
基础类型变量声明
如何在Rocky Linux和AlmaLinux上安装MySQL 8.0
c# 键盘钩子
Dragon Book tiger Book whale Book gnawing? Try the monkey book with Douban score of 9.5
Return value‘s Lifetime
TTChat x Zadig 开源共创 Helm 接入场景,环境治理搞得定!
启泰观察:职业精英创业必踩巨坑之 --- 学习效果坑
When you are young, you should be awake to fight, and when you are young, you should have the courage to try
Numpy的ndarray数组基础
Jerry's configuration of TWS cross pairing [chapter]
[pbootcms template] composition website / document download website source code
妙!妙盈科技全面实施 Zadig 助力容器化建设,全面拥抱 Kubernetes 和云原生
黑化的蜜雪冰城,凭营销就想抓牢消费者的心?
2022 amination process test question simulation test question bank and online simulation test