Home > Database > Mysql Tutorial > body text

Oracle数据库操作时如何使用LOWER()、UPPER()函数

WBOY
Release: 2016-06-07 16:22:50
Original
1375 people have browsed it

Oracle LOWER() 和 UPPER()函数的使用方法 一列返回行不区分大小写 这是常见的做法,使列不区分大小写,以确保您所希望返回所有行。 SELECT * FROM COURSES WHERE LOWER(education_delivery_method) = 'classroom' 您可以使用Oracle的UPPER() or LOWER() 函

Oracle LOWER() 和 UPPER()函数的使用方法

一列返回行不区分大小写
这是常见的做法,使列不区分大小写,以确保您所希望返回所有行。
 

SELECT *
FROM  COURSES
WHERE  LOWER(education_delivery_method)  = 'classroom'


您可以使用Oracle的UPPER() or LOWER() 函数来在你的SQL选择格式列

SELECT
  UPPER(FIRSTNAME) AS "FIRSTNAME",
  LASTNAME
FROM STUDENTS
WHERE RowNum  

格式一列使用上下功能
它可以使用与串()一起下的Oracle UPPER() or LOWER()函数函数来完成不同类型的格式。

 

SELECT
  UPPER(SUBSTR(LASTNAME,1,1)) || LOWER(SUBSTR(LASTNAME,2,29))
FROM STUDENTS
WHERE RowNum 更新一组行的变化情况
它可以使用一个更新语句Oracle的 UPPER() or LOWER()函数一起使用,,以改变“案“的一组行。


UPDATE STUDENTS
SET    LASTNAME = UPPER(LASTNAME)
WHERE  LASTNAME  = 'Jones' 
/

COMMIT WORK ;

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!