MapReduce服务 MRS-UPDATE:示例

时间:2023-11-01 16:25:24

示例

-- 创建事务表create table upd_tb(col1 int,col2 string)  with (format='orc',transactional=true);--插入数据insert into upd_tb values (3,'A'),(4,'B');--修改col1 = 4的数据update upd_tb set col1=5 where col1=4;--查询表,col1=4的记录已被修改select * from upd_tb; --  col1 | col2 ------|------    5 | B        3 | A  
support.huaweicloud.com/cmpntguide-lts-mrs/mrs_01_249058.html