github.com/matrixorigin/matrixone@v0.7.0/test/distributed/cases/tenant/clustertable.sql (about)

     1  drop account if exists tenant_test;
     2  create account tenant_test admin_name = 'root' identified by '111' open comment 'tenant_test';
     3  
     4  use mo_catalog;
     5  drop table if exists a;
     6  create cluster table a(a int);
     7  insert into a accounts(sys,tenant_test) values(0),(1),(2),(3);
     8  select a from a;
     9  
    10  -- @session:id=2&user=tenant_test:root&password=111
    11  use mo_catalog;
    12  select a from a;
    13  -- @session
    14  
    15  drop account if exists tenant_test;
    16  
    17  select a from a;
    18  drop table if exists a;
    19  
    20  drop account if exists tenant_test;