POSTGRESQL 存儲過程 select into 和 insert into select 兩種表複製語句之間的差異

select into 和 insert into select 兩種表複製語句之間的差異sql select * into 表1 from 表2 insert into 表1(name, no) select name, 123 from  表2; 以上兩句都是將 表2 的數據插入到表1,但兩句又有區別的。  第一句(select into from)要求目標表(表1)不存在,由於在插入時會自動
相關文章
相關標籤/搜索