日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

DML操作

更新時(shí)間:

MaxCompute中的DML語(yǔ)句包括插入、更新和刪除數(shù)據(jù)操作。本文為您介紹Dataphin支持的MaxCompute的DML操作語(yǔ)句。

功能

是否支持

插入或覆寫(xiě)數(shù)據(jù)(INSERT INTO | INSERT OVERWRITE)

  • 支持insert {into|overwrite} table <table_name> [partition (<pt_spec>)] <select_statement> from <from_statement>;

  • 支持指定列插入數(shù)據(jù):insert into table <table_name> [partition (<pt_spec>)] (<col_name> ,<col_name> ...) <select_statement> from <from_statement>;

  • 支持插入數(shù)據(jù)排序。

    insert {into|overwrite} table <table_name> [partition (<pt_spec>)] [(<col_name> [,<col_name> ...)]]
    <select_statement>
    from <from_statement>
    [zorder by <zcol_name> [, <zcol_name> ...]];

插入或覆寫(xiě)動(dòng)態(tài)分區(qū)數(shù)據(jù)(DYNAMIC PARTITION)

多路輸出(MULTI INSERT)

VALUES

LOAD

COMMON TABLE EXPRESSION(CTE)

  • 支持with table as (select ...) insert into tab select ... from table

  • 支持with table as (select ...) select ... from table

更新或刪除數(shù)據(jù)(UPDATE | DELETE)

  • 支持update操作用于將Transactional表或Delta Table表中行對(duì)應(yīng)的單列或多列數(shù)據(jù)更新為新值。

    --方式1
    update <table_name> set <col1_name> = <value1> [, <col2_name> = <value2> ...] [WHERE <where_condition>];
    
    --方式2
    update <table_name> set (<col1_name> [, <col2_name> ...]) = (<value1> [, <value2> ...])[WHERE <where_condition>];
    
    --方式3
    UPDATE <table_name>
           SET <col1_name> = <value1> [ , <col2_name> = <value2> , ... ]
            [ FROM <additional_tables> ]
            [ WHERE <where_condition> ]
  • 支持使用clear column命令清空普通表的列。

    ALTER TABLE <table_name> 
               [partition ( <pt_spec>[, <pt_spec>....] )] 
    					 CLEAR COLUMN column1[, column2, column3, ...]
    			                         [without touch];
  • 支持合并Transactional表文件。

    alter table <table_name> [partition (<partition_key> = '<partition_value>' [, ...])] compact {minor|major};

MERGE INTO

DROP COLUMNS(刪除表中列)