当前位置:网站首页>Oracle/PLSQL: Upper Function
Oracle/PLSQL: Upper Function
2022-06-27 01:46: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.
边栏推荐
- UVM in UVM_ config_ Setting and obtaining DB non-linear
- Oracle/PLSQL: Ltrim Function
- UVM中uvm_config_db非直线的设置与获取
- Kept to implement redis autofailover (redisha) 12
- Learn the most basic operation of discodiffusion
- Online text digit recognition list summation tool
- NOKOV动作捕捉系统使多场协同无人机自主建造成为可能
- Oracle/PLSQL: Lower Function
- Daily question brushing record (V)
- 接口隔离原则
猜你喜欢

学习DiscoDiffusion的最基础操作

清华&智源 | CogView2:更快更好的文本图像生成模型

Binary tree OJ problem

做了两天的唯美蝴蝶动画

SystemVerilog simulation speed increase

递归是会更秀strtok

理想L9产品力分析:售价45.98万,采用四缸发动机,续航1315公里

SystemVerilog仿真速率提升

福元医药上市在即:募资净额将达到16亿元,胡柏藩为实际控制人

Systematic analysis of social networks using Networkx: Facebook network analysis case
随机推荐
Oracle/PLSQL: From_Tz function
Markdown table (consolidated)
Oracle/PLSQL: Translate Function
UVM in UVM_ config_ Use of DB in sequence
热议:月薪1.8万却毫无意义的工作,你干吗?
get_ Usage Summary of sequencer
Memcached foundation 10
Two days of beautiful butterfly animation
memcached基础12
Oracle/PLSQL: VSize Function
XSS notes (Part 2)
Pointer compression for JVM
BS-GX-016基于SSM实现教材管理系统
Kept to implement redis autofailover (redisha) 17
The listing of Fuyuan pharmaceutical is imminent: the net amount raised will reach 1.6 billion yuan, and hubaifan is the actual controller
Weibo comments on high performance and high availability architecture
简单学习GoogleColab的入门级概念
Kept to implement redis autofailover (redisha) 12
Memcached basics 14
学习DiscoDiffusion的最基础操作