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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章