waterye

          long to long, long to lob

          Oracle已經建議使用lob代替long, 但舊應用中還有一些long類型, 在insert into select from中無法使用

          long to long
          declare
              test_type 
          long;
          begin 
               
          select detail into test_type from table_long;
              
          insert into table_long2(detail) values(test_type); 
                  commit;
          end;
          /

          long to lob
          insert into table_clob(detail) select to_lob(detail) from table_long;
          note: cannot use LOB locators selected from remote tables

          參考:
          1. http://www.itpub.net/304707.html
          2. Oracle SQL Reference

          posted on 2006-01-11 13:35 waterye 閱讀(613) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 鱼台县| 丰台区| 兰西县| 温泉县| 大关县| 洪湖市| 涞水县| 罗定市| 中宁县| 台东市| 邢台县| 宁阳县| 青田县| 双牌县| 大悟县| 宁海县| 灌云县| 东台市| 中西区| 长沙市| 桐乡市| 竹北市| 汉源县| 屏南县| 宁武县| 中江县| 福安市| 杭锦后旗| 双鸭山市| 津市市| 同仁县| 芜湖县| 澄城县| 海城市| 临颍县| 阿坝县| 六盘水市| 中西区| 尼勒克县| 辛集市| 积石山|