当前位置:网站首页>Oracle/PLSQL: Upper Function
Oracle/PLSQL: Upper Function
2022-06-27 01:35:00 【yuanlnet】
In Oracle/PLSQL, the upper function converts all letters in the specified string to uppercase. If there are characters in the string that are not letters, they are unaffected by this function.
Syntax
The syntax for the upper function is:
upper( string1 )string1 is the string to convert to uppercase.
Applies To
- Oracle 11g, Oracle 10g, Oracle 9i, Oracle 8i
For Example
upper('Tech on the Net'); | would return 'TECH ON THE NET' |
upper('george burns 123 '); | would return 'GEORGE BURNS 123 ' |
Frequently Asked Questions
Question: How do you incorporate the Oracle upper function with the LIKE condition? I'm trying to query against a free text field for all records containing the word "test". The problem is that it can be entered in the following ways: TEST, Test, or test.
Answer: To answer this question, let's take a look at an example.
Let's say that we have a suppliers table with a field called supplier_name that contains the values TEST, Test, or test.
If we wanted to find all records containing the word "test", regardless of whether it was stored as TEST, Test, or test, we could run either of the following SQL statements:
select * from supplierswhere upper(supplier_name) like ('TEST%');or
select * from supplierswhere upper(supplier_name) like upper('test%')These SQL statements use a combination of the upper function and the LIKE condition to return all of the records where the supplier_name field contains the word "test", regardless of whether it was stored as TEST, Test, or test.
边栏推荐
猜你喜欢

二叉树oj题目

Learn the most basic operation of discodiffusion

Esp32 add multi directory custom component

Summary of working at home during the epidemic | community essay solicitation

Buuctf PWN write UPS (6)

IIS 部署静态网站和 FTP 服务

Modeling specifications: environment settings

Analysis of ideal L9 product power: the price is 459800 yuan, the four cylinder engine is adopted, and the endurance is 1315km

Pointer compression for JVM

SystemVerilog simulation speed increase
随机推荐
递归是会更秀strtok
How to measure the thickness of glass substrate by spectral confocal
cookie,sessionstorage,localstorage区别
Keepalived 实现 Redis AutoFailover (RedisHA)13
对象的访问机制及其他
Kept to implement redis autofailover (redisha) 14
I encountered some problems when connecting to the database. How can I solve them?
NLP:Transformer在NLP自然语言领域的简介(预训练技术)、NLP模型发展(ELmo/GPT/BERT/MT-DNN/XLNet/RoBERTa/ALBERT)、经典案例之详细攻略
Recursion will make strtok more attractive
Amazon elasticache quickly builds a cache service cluster, which is fast
Ml: a detailed introduction to the division of the top ten roles, backgrounds, responsibilities and outputs of the machine learning engineering team
1.44 inch TFT-LCD display screen mold taking tutorial
Memcached Foundation
memcached基础4
WiFi-IoT 鸿蒙开发套件样例开发
flutter系列之:flutter中的flow
“所有专业都在劝退”,对大学生最友好的竟然是它?
Topolvm: kubernetes local persistence scheme based on LVM, capacity aware, dynamically create PV, and easily use local disk
SystemVerilog simulation speed increase
Learn the most basic operation of discodiffusion