Posted on 2008-11-26 18:17
Prayer 閱讀(227)
評論(0) 編輯 收藏 引用 所屬分類:
數據庫,SQL
select into 和 insert into select 兩種表復制語句
第一句(select into from)要求目標表(destTbl)不存在,因為在插入時會自動創建。
第二句(insert into select from)要求目標表(destTbl)存在,由于目標表已經存在,所以我們除了插入源表(srcTbl)的字段外,還可以插入常量.