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

时间:2024-11-02 18:50:33

语法格式

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