数据仓库服务 GAUSSDB(DWS)-ALTER SESSION:语法格式

时间:2024-01-26 16:15:25

语法格式

  • 设置会话的事务参数。
    1
    2
    ALTER SESSION SET [ SESSION CHARACTERIS TICS  AS ] TRANSACTION
        { ISOLATION LEVEL { READ COMMITTED | READ UNCOMMITTED } | { READ ONLY  | READ WRITE } } [, ...] ;
    
  • 设置会话的其他运行时参数。
     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    ALTER SESSION SET 
        {{config_parameter { { TO  | =  }  { value | DEFAULT }
          | FROM CURRENT }} | CURRENT_SCHEMA [ TO | = ] { schema | DEFAULT }
          | TIME ZONE time_zone
          | SCHEMA schema
          | NAMES encoding_name
          | ROLE role_name PASSWORD 'password'
          | SESSION AUTHORIZATION { role_name PASSWORD 'password' | DEFAULT }
          | XML OPTION { DOCUMENT | CONTENT }
        } ;
    
support.huaweicloud.com/sqlreference-820-dws/dws_06_0139.html