云数据库 GAUSSDB-BEGIN:语法格式

时间:2024-07-01 18:36:24

语法格式

  • 开启匿名块。
    [DECLARE [declare_statements]] 
    BEGIN
    execution_statements
    END;
    /
  • 开启事务。
    BEGIN [ WORK | TRANSACTION ]
      [ 
        { 
           ISOLATION LEVEL { READ COMMITTED | READ UNCOMMITTED | SERIALIZABLE | REPEATABLE READ }
           | { READ WRITE | READ ONLY }
          } [, ...] 
      ];
support.huaweicloud.com/centralized-devg-v8-gaussdb/gaussdb-42-0532.html