Lower
概述
Lower 函数用于将字符串中的所有字母转换为小写。
语法说明
参数说明
| 参数 | 必需 | 参数类型 | 说明 |
|---|---|---|---|
| 字符串 | 是 | 字段、表达式、常量 | 需要转换为小写的字符串 |
示例
示例:将产品名称转换为小写
假设在一个产品数据表中,产品名称存储在名为 ProductName 的字段中。我们希望将产品名称中的所有字母转换为小写,可以使用如下表达式:
示例公式
数据示例
| ProductID | ProductName |
|---|---|
| P001 | "iPhone 13" |
| P002 | "Galaxy S21" |
| P003 | "Pixel 5" |
| P004 | "Surface Pro 7" |
| P005 | "PlayStation 5" |
计算结果
通过上述 Lower 函数表达式,结果将会是:
| ProductID | ProductName | LowerProductName |
|---|---|---|
| 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" |
Lower(ProductName) 将 ProductName 字段中的所有字母转换为小写。