操作xstore表 本页介绍天翼云TeleDB数据库操作xstore表的具体示例。 插入数据 xstore表插入数据和行存表语法一致,使用insert into 语句对表插入数据,插入子查询的结果示例如下: plaintext teledb create table xt (a int ,b int ,c text) using xstore; CREATE TABLE teledb insert into xt select 1,i,'c'i from generateseries(1,20) i; INSERT 0 20 teledb select from xt; a b c ++ 1 1 c1 1 2 c2 1 3 c3 1 4 c4 1 5 c5 1 6 c6 1 7 c7 1 8 c8 1 9 c9 1 10 c10 1 11 c11 1 12 c12 1 13 c13 1 14 c14 1 15 c15 1 16 c16 1 17 c17 1 18 c18 1 19 c19 1 20 c20 (20 rows) 更新数据 xstore表更新数据和行存表语法一致,使用update 命令对指定列或多列数据进行更新,操作如下: plaintext teledb update xt set bb+a; UPDATE 20 teledb select from xt; a b c ++ 1 2 c1 1 3 c2 1 4 c3 1 5 c4 1 6 c5 1 7 c6 1 8 c7 1 9 c8 1 10 c9 1 11 c10 1 12 c11 1 13 c12 1 14 c13 1 15 c14 1 16 c15 1 17 c16 1 18 c17 1 19 c18 1 20 c19 1 21 c20 (20 rows)