# LOWER

> StackQL 中的 LOWER 函式：將字串轉換為小寫。

Source: https://stackql.io/zh-hant/language-spec/functions/string/lower

以小寫傳回輸入字串。  

另請參閱：  
[[` SELECT `]](/language-spec/select) [[` UPPER `]](/language-spec/functions/string/upper) [[ 資料型別 ]](/language-spec/data-types)

* * * 

## 語法

```sql
SELECT LOWER(character_expression) FROM <multipartIdentifier>;
```
> `lower()` 函式僅適用於 ASCII 字元。

## 引數

__*character_expression*__  
ASCII 字串。

## 傳回值
傳回字串值。

* * *

## 範例

### 以小寫傳回字串

```sql
SELECT name, LOWER(location) FROM google.storage.buckets WHERE project = 'stackql-demo';
```

如需詳細資訊，請參閱 [https://www.sqlite.org/lang_corefunc.html#lower](https://www.sqlite.org/lang_corefunc.html#lower)。
