跳转至

Upper

概述

Upper 函数用于将字符串中的所有字母转换为大写。

语法说明

Upper(<字符串>)

参数说明

参数 必需 参数类型 说明
字符串 字段、表达式、常量 需要转换为大写的字符串

示例

示例:将产品名称转换为大写

假设在一个产品数据表中,产品名称存储在名为 ProductName 的字段中。我们希望将产品名称中的所有字母转换为大写,可以使用如下表达式:

示例公式

Upper(ProductName)

数据示例

ProductID ProductName
P001 "iPhone 13"
P002 "Galaxy S21"
P003 "Pixel 5"
P004 "Surface Pro 7"
P005 "PlayStation 5"

计算结果

通过上述 Upper 函数表达式,结果将会是:

ProductID ProductName UpperProductName
P001 "iPhone 13" "IPHONE 13"
P002 "Galaxy S21" "GALAXY S21"
P003 "Pixel 5" "PIXEL 5"
P004 "Surface Pro 7" "SURFACE PRO 7"
P005 "PlayStation 5" "PLAYSTATION 5"