posts - 84,  comments - 54,  trackbacks - 0
          1、單行插入
              insert into <tabler>[(column,[column,...])]values(value,[value,....])
              使用default 插入數據,在values當中使用default會插入默認值,或者NULL

          2、使用字查詢插入數據。
                INSERT INTO <TABLE> subquery.

               INSERT ALL insert_into_clause [value clause]subquery
              INSERT conditional_insert_clause subquery

              insert all 
              when deptno = 10 then into dept10
              when deptno = 20 then into dept20
              else into others
               select * from emp;

                INSERT FIRST(如果先前的數據已經被使用過,那么在后續當中則不會再使用這些數據) 
              when deptno = 10 then into dept10
              when deptno = 20 then into dept20
              else into others
               select * from emp;

          另外提供create table as subquery;

          posted on 2009-06-23 11:37 JavaCoffe 閱讀(667) 評論(0)  編輯  收藏 所屬分類: Oralce&&PL/SQL
          <2009年6月>
          31123456
          78910111213
          14151617181920
          21222324252627
          2829301234
          567891011

          常用鏈接

          留言簿(5)

          隨筆分類(80)

          收藏夾(1)

          最新隨筆

          積分與排名

          • 積分 - 58609
          • 排名 - 894

          最新評論

          閱讀排行榜

          主站蜘蛛池模板: 安西县| 二连浩特市| 吴堡县| 宾阳县| 合川市| 霍林郭勒市| 长兴县| 金昌市| 河津市| 抚松县| 贺州市| 客服| 蒙山县| 镇安县| 扎囊县| 横山县| 会昌县| 宜宾市| 临桂县| 东源县| 如皋市| 沧州市| 卓资县| 留坝县| 灵川县| 枝江市| 睢宁县| 积石山| 万荣县| 会东县| 永城市| 泰和县| 任丘市| 恩施市| 吴桥县| 金门县| 宜良县| 古浪县| 扶绥县| 汉阴县| 横山县|