select into from 和 insert into select 区别与共同点
例子:
select * into new_tabname from old_tabname where (条件)
insert into new_tabname select * from old_tabname where (条件)
共同点:
都是用来复制表
区别:
select into from 要求目标表不存在
insert into select 要求目标表存在
例子:
select * into new_tabname from old_tabname where (条件)
insert into new_tabname select * from old_tabname where (条件)
共同点:
都是用来复制表
区别:
select into from 要求目标表不存在
insert into select 要求目标表存在