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 要求目标表存在

posted @ 2024-06-14 11:10  zhuoyb  阅读(19)  评论(0)    收藏  举报