【产品名称】
【产品版本】
【问题描述】
有办法查询所有用户租户的所有column。查询所有用户数据表的DDL操作历史吗?‘
【产品名称】
【产品版本】
【问题描述】
有办法查询所有用户租户的所有column。查询所有用户数据表的DDL操作历史吗?‘
有的,请参照文档: https://open.oceanbase.com/docs/community/oceanbase-database/V3.1.2/what-is-oceanbase
column : root@sys ob 2.x version
select a.tenant_id,a.table_id,column_id,column_name,b.table_name from __all_virtual_column a,__all_virtual_table b where a.table_id=b.table_id
ddl_operation :root@sys ob 2.x version
SELECT tenant_id,gmt_create,gmt_modified,user_id,database_id,database_name,operation_type,exec_tenant_id,ddl_stmt_str FROM __all_virtual_ddl_operation where upper(DDL_STMT_STR) like '%DROP USER%';
select * from __all_ddl_operation limit 1;