返回首页

gbase数据、南大通用产品文档:GBase8sdrop tempsbspace to storagepool 参数:从

更新日期:2024年09月11日

空的临时 sbspace 归还空间到存储池
(SQL 管
理 API)
随同 admin() 或 task() 函数,使用 drop tempsbspace to storagepool 参数来从空的
临时 sbspace 归还空间到存储池。
语法

元素
描述
关键考虑
tempsbspace
空的临时 sbspace 名称。

示例
下列命令删除名为 tempsbspace3 的空的临时 sbspace,并将所有释放的空间添加到存储
池。
EXECUTE FUNCTION task("drop tempsbspace to storagepool", "tempsbspace3");

函数说明
将字符串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;