waterye

          #

          pl/sql developer 7

          PL/SQL Developer 7.0 - New Features

          感興趣的功能(未測試)

          Refactoring
          The refactoring function allows you to quickly reorganize your PL/SQL code. It works on the selected code, or ?if no selection is made ?on the current statement. Refactoring functions include ?Rename item ?Convert selection to procedure ?Convert selection to local constant ? Convert selection to global constant ?Replace assignment with initialization.

          Excel export
          The Excel export function now adds the SQL Text on a second page of the excel sheet.

          Session Filters
          You can define session filters to limit the sessions displayed and/or to define which columns you want to see and in which order. You can include/omit columns from the v$session table, or add additional column joined from other tables. At the top of the Session Window you can select which filter you want to use:

          posted @ 2006-02-06 00:31 waterye 閱讀(1427) | 評論 (2)編輯 收藏

          IntelliJ IDEA Python plugin available in CVS

          http://blogs.jetbrains.com/yole/archives/000082.html

          https://pythonid.dev.java.net/

          posted @ 2006-01-25 00:44 waterye 閱讀(1858) | 評論 (0)編輯 收藏

          買了幾本書

          好久沒有買計算機相關的書了, 今天在購書中心買了三本, 打算春節期間看看(不知有沒有時間)

          1. <<Joel On Software>>
          2. <<Effective Enterprise Java>>
          3. <<Effective Oracle By Design>>

          都是中文版的, 爭取在春節期間翻翻

          posted @ 2006-01-24 17:22 waterye 閱讀(864) | 評論 (3)編輯 收藏

          年底了, 事情還真多

          年底了。事情可真多啊,離職,新工作,回家......

          周五晚喝了個爛醉,本來要side的時間拿來休息了。

          anyway, 祝各位春節快樂!

          posted @ 2006-01-22 14:04 waterye 閱讀(471) | 評論 (0)編輯 收藏

          Session.evict(Object object), Session.setReadOnly(Object entity, boolean readOnly)

               摘要: Session.evict(), Session.setReadOnly()的用法  閱讀全文

          posted @ 2006-01-18 11:49 waterye 閱讀(2069) | 評論 (0)編輯 收藏

          Spring集成FileUpload

               摘要: Spring集成Commons FileUpload, 實現文件上傳  閱讀全文

          posted @ 2006-01-15 22:46 waterye 閱讀(3083) | 評論 (1)編輯 收藏

          JDBC call Stored Procedure

               摘要: 現在的ORM(如Hibernate)性能一直不是很理想, 一些大型的J2EE項目還是以JDBC為主, 但一直對SP(Stored Procedure)有抵制情緒, 搞得SQL滿天飛, 因最近幾周用PL/SQL弄歷史數據遷移的問題, 順便整理一下JDBC調用SP.  閱讀全文

          posted @ 2006-01-13 16:59 waterye 閱讀(5029) | 評論 (0)編輯 收藏

          Cursor FOR Loop

          Implicit Cursor FOR Loop
          DECLARE
              type_name 
          VARCHAR2(10) := 'TABLE';
          BEGIN    
              
          FOR item IN (SELECT object_name, status FROM user_objects WHERE object_type = type_name) LOOP
                  dbms_output.put_line(
          'Table = ' || item.object_name || ', Status = ' || item.status);
              
          END LOOP;
          END;
          /


          Explicit Cursor FOR Loop
          DECLARE
              
          CURSOR c(type_name VARCHAR2IS
                  
          SELECT object_name, status FROM user_objects WHERE object_type = type_name;
              c_rec c
          %ROWTYPE;
          BEGIN
              
          FOR item IN c('TABLE') LOOP
                  dbms_output.put_line(
          'Table = ' || item.object_name || ', Status = ' || item.status);
              
          END LOOP;

              
          OPEN c('TABLE');
              LOOP
                  
          FETCH c INTO c_rec;
                  
          EXIT WHEN c%NOTFOUND;
                  dbms_output.put_line(
          'Table = ' || c_rec.object_name || ', Status = ' || c_rec.status);
              
          END LOOP;
              
          CLOSE c;
          END;
          /

          參考:
          1. PL/SQL User's Guide and Reference
          2. Java Oracle Database Development

          posted @ 2006-01-11 14:04 waterye 閱讀(719) | 評論 (0)編輯 收藏

          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 @ 2006-01-11 13:35 waterye 閱讀(613) | 評論 (0)編輯 收藏

          Use Dynamic SQL

          DECLARE
             sql_stmt    
          VARCHAR2(200);
             dept_id     
          NUMBER(2) := 50;
             dept_name   
          VARCHAR2(14) := 'PERSONNEL';
             location    
          VARCHAR2(13) := 'DALLAS';
          BEGIN
             sql_stmt :
          = 'INSERT INTO dept VALUES (:1, :2, :3)';
             
          EXECUTE IMMEDIATE sql_stmt USING dept_id, dept_name, location;
             
          commit;
          EXCEPTION    
             
          WHEN OTHERS THEN 
             
          ROLLBACK;   
          END;
          /

          參考: PL/SQL User's Guide and Reference

          posted @ 2006-01-10 12:04 waterye 閱讀(554) | 評論 (0)編輯 收藏

          僅列出標題
          共18頁: First 上一頁 5 6 7 8 9 10 11 12 13 下一頁 Last 
          主站蜘蛛池模板: 鄂尔多斯市| 曲阜市| 修文县| 泰兴市| 牙克石市| 拉孜县| 宁武县| 犍为县| 正安县| 莫力| 沁源县| 吉林省| 阿尔山市| 通山县| 清新县| 鄱阳县| 邳州市| 肇州县| 达拉特旗| 香河县| 紫云| 岫岩| 凌云县| 扬中市| 张北县| 名山县| 资溪县| 巴楚县| 和平县| 锦州市| 芒康县| 安泽县| 雷山县| 延庆县| 广汉市| 杂多县| 明星| 康保县| 香河县| 通化市| 河津市|