更新日期:2024年09月11日
函数说明
将字符串str 中的所有字符改变为小写形式。
示例
示例1:LOWER(str)等价于LCASE()。
GBase 8a MPP Cluster 产品手册
5 数据库管理指南
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
699
gbase> SELECT
LOWER('QUADRATICALLY'),LCASE('QUADRATICALLY') FROM
dual;
+------------------------+------------------------+
| LOWER('QUADRATICALLY') | LCASE('QUADRATICALLY') |
+------------------------+------------------------+
| quadratically
| quadratically
|
+------------------------+------------------------+
1 row in set
在内部FOR LOOP语句中的EXIT WHEN语句
DECLARE
v_employees employees%ROWTYPE;
CURSOR c1 is SELECT * FROM employees;
BEGIN
OPEN c1;
-- Fetch entire row into v_employees record:
GBase 8s PL/SQL手册
南大通用数据技术股份有限公司
- 55 -
<
FOR i IN 1..10 LOOP
-- Process data here
FOR j IN 1..10 LOOP
FETCH c1 INTO v_employees;
EXIT outer_loop WHEN c1%NOTFOUND;
-- Process data here
END LOOP;
END LOOP outer_loop;
CLOSE c1;
END;