tencent cloud

Feedback

Materialized View Statement

Last updated: 2024-08-07 17:29:42
    Description:
    The following statement for materialized views is supported only by Presto and SparkSQL engines. For detailed usage instructions, see the Materialized View documentation.

    CREATE MATERIALIZED

    Create a materialized view:
    CREATE MATERIALIZED VIEW [IF NOT EXISTS] mv_identifier
    [ENABLE | DISABLE REWRITE]
    [COMMENT mv_comment]
    [WITH META LINK]
    [TBLPROPERTIES (key1=value1, key2=value2,...)]
    [AS] select_query

    DROP MATERIALIZED

    Delete a materialized view:
    DROP MATERIALIZED VIEW [IF EXISTS] mv_identifier

    DESCRIBE MATERIALIZED

    Describe a materialized view:
    [DESCRIBE | DESC] MATERIALIZED VIEW mv_identifier

    REFRESH MATERIALIZED

    Refresh a materialized view:
    REFRESH MATERIALIZED VIEW mv_identifier

    SHOW MATERIALIZED VIEW JOBS

    Display the execution task list of materialized views, providing insights into the refresh history and status of the materialized view.
    SHOW MATERIALIZED VIEW JOBS IN mv_identifier
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support