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 阅读(1420) | 评论 (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 阅读(1846) | 评论 (0)编辑 收藏

买了几本书

好久没有买计算机相关的书了, 今天在购书中心买了三本, 打算春节期间看看(不知有没有时间)

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

都是中文版的, 争取在春节期间翻翻

posted @ 2006-01-24 17:22 waterye 阅读(856) | 评论 (3)编辑 收藏

年底了, 事情还真多

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

周五晚喝了个烂醉,本来要side的时间拿来休息了。

anyway, 祝各位春节快乐!

posted @ 2006-01-22 14:04 waterye 阅读(461) | 评论 (0)编辑 收藏

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

     摘要: Session.evict(), Session.setReadOnly()的用法  阅读全文

posted @ 2006-01-18 11:49 waterye 阅读(2064) | 评论 (0)编辑 收藏

Spring集成FileUpload

     摘要: Spring集成Commons FileUpload, 实现文件上传  阅读全文

posted @ 2006-01-15 22:46 waterye 阅读(3073) | 评论 (1)编辑 收藏

JDBC call Stored Procedure

     摘要: 现在的ORM(如Hibernate)性能一直不是很理想, 一些大型的J2EE项目还是以JDBC为主, 但一直对SP(Stored Procedure)有抵制情绪, 搞得SQL满天飞, 因最近几周用PL/SQL弄历史数据迁移的问题, 顺便整理一下JDBC调用SP.  阅读全文

posted @ 2006-01-13 16:59 waterye 阅读(5019) | 评论 (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 阅读(710) | 评论 (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 阅读(610) | 评论 (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 阅读(549) | 评论 (0)编辑 收藏

仅列出标题
共18页: First 上一页 5 6 7 8 9 10 11 12 13 下一页 Last