alter
--修改表名
alter table/index A rename to B;
--修改字段/约束名
alter table A rename column/constraint A1 to A2;
--删除字段/约束
alter table A drop column/constraint A1;
--增加字段
alter table A add A1 VARCHAR(10);
--修改字段类型
alter table A modify A1 VARCHAR(10);
merge
--匹配条件同步数据
merge into A a using
(select * from B where …) b
on (a.A1=b.B1)
when matched then
update set a.A2=b.B2,a.A3=b.B3,… where…
insert
--插入数据:
insert into A(A1,A2,…) values ('','',…);
create
--创建索引
create (unique) index AA on A(A1);