本页介绍天翼云TeleDB数据库存储过程开发的GOTO语句。 plaintext teledb create or replace procedure pgoto(vmaxnum integer) as $$ declare maxnum integer; begin maxnum : vmaxnum; for i in 1..maxnum loop if i3 then goto label; end if; raise notice 'i%',i; end loop; > raise notice 'goto end'; end; $$ language plpgsql; CREATE PROCEDURE teledb call pgoto(5); NOTICE: i1 NOTICE: i2 NOTICE: goto end CALL teledb go 用于跳转到某个标签下。
本页介绍天翼云TeleDB数据库存储过程开发的GOTO语句。 plaintext teledb create or replace procedure pgoto(vmaxnum integer) as $$ declare maxnum integer; begin maxnum : vmaxnum; for i in 1..maxnum loop if i3 then goto label; end if; raise notice 'i%',i; end loop; > raise notice 'goto end'; end; $$ language plpgsql; CREATE PROCEDURE teledb call pgoto(5); NOTICE: i1 NOTICE: i2 NOTICE: goto end CALL teledb go 用于跳转到某个标签下。
本页介绍天翼云TeleDB数据库系统视图usercolcomments的内容。 视图的作用:提供了当前用户所拥有的表的列及其注释信息。 名称 类型 定义 schemaname name 列所在的表的模式(schema)名称。 tablename name 列所在的表的名称。 columnname name 列的名称。 comments text 列的注释信息。