`
favor
  • 浏览: 142003 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

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 会将查询结果保存到已经存在的表中
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics