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

          2、使用字查詢插入數(shù)據(jù)。
                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(如果先前的數(shù)據(jù)已經(jīng)被使用過,那么在后續(xù)當中則不會再使用這些數(shù)據(jù)) 
              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)

          最新隨筆

          積分與排名

          • 積分 - 58603
          • 排名 - 894

          最新評論

          閱讀排行榜

          主站蜘蛛池模板: 横峰县| 象山县| 贺州市| 高清| 二手房| 比如县| 池州市| 尚志市| 马山县| 沙河市| 苏尼特左旗| 镇沅| 三河市| 滦平县| 东城区| 丹凤县| 康乐县| 德保县| 清新县| 巢湖市| 万荣县| 蒙自县| 闽清县| 叶城县| 贵港市| 乌兰察布市| 棋牌| 吉水县| 柳河县| 永兴县| 隆林| 大悟县| 盐源县| 延边| 安福县| 彭泽县| 西峡县| 镇原县| 阿瓦提县| 洛阳市| 临沧市|