SQL数据插入

插入完整的行:
insert into 表 values(一个元组);

插入行的一部分:
insert into 表(属性集) values(对应属性);
补充:可替代第一种方法,且更加安全

插入某些查询结果:
insert into 表(属性集) select 对应属性 …;

表的复制:
create table 表0 as select * from 表1;
select * into 表0 from 表1;

猜你喜欢

转载自blog.csdn.net/dc12499574/article/details/121182800