云数据库 GaussDB-DROP MATERIALIZED VIEW:示例

时间:2025-01-26 10:48:21

示例

--创建表。gaussdb=# CREATE TABLE my_table (c1 int, c2 int)WITH(STORAGE_TYPE=ASTORE);--创建名为my_mv的物化视图。gaussdb=# CREATE MATERIALIZED VIEW my_mv AS SELECT * FROM my_table;--删除名为my_mv的物化视图。gaussdb=# DROP MATERIALIZED VIEW my_mv;--删除表。gaussdb=# DROP TABLE my_table;
support.huaweicloud.com/distributed-devg-v8-gaussdb/gaussdb-12-0601.html