select into 和 insert into的简单区别

现有表t1, t2
select into:
select * into t3 from t1;
也就是说select into会将查询结果保存到临时表t3中

insert into:
insert into t2(column1, column2, ....) select column1, column2, .... from t1
insert into 会将查询结果保存到已经存在的表中
发布了24 篇原创文章 · 获赞 0 · 访问量 2617
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章