更改列中数据的文本文本转换? [SQL]
Change the text text-transform of the data in the column? [SQL]
列中包含的数据以大写形式存储。
是否可以自动更新此列 SYSLOCE2
中的所有数据为小写字母?
|---------------------|------------------|
| ID | SYSLOCE2 |
|---------------------|------------------|
| 1 | SAMPLE |
|---------------------|------------------|
| 2 | PEOPLE |
|---------------------|------------------|
| 3 | HELLO |
|---------------------|------------------|
| 4 | WORLD |
|---------------------|------------------|
您可以使用 lower()
。它将字符串中的所有大写字母转换为等效的小写字母。
UPDATE elbat
SET sysloce2 = lower(sysloce2);
列中包含的数据以大写形式存储。
是否可以自动更新此列 SYSLOCE2
中的所有数据为小写字母?
|---------------------|------------------|
| ID | SYSLOCE2 |
|---------------------|------------------|
| 1 | SAMPLE |
|---------------------|------------------|
| 2 | PEOPLE |
|---------------------|------------------|
| 3 | HELLO |
|---------------------|------------------|
| 4 | WORLD |
|---------------------|------------------|
您可以使用 lower()
。它将字符串中的所有大写字母转换为等效的小写字母。
UPDATE elbat
SET sysloce2 = lower(sysloce2);