亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標(biāo)題: select cursor(select * from table ) from temp; [打印本頁]

作者: wind0299    時間: 2004-10-29 11:06
標(biāo)題: select cursor(select * from table ) from temp;
誰知道這樣的sql語句怎么在java中取得結(jié)果集???
oracle 10g
j2sdk1.4.2
作者: fuwenyu0307    時間: 2004-11-11 15:27
標(biāo)題: select cursor(select * from table ) from temp;
看不太明白你的SELECT語句。如果是返回一個結(jié)果集就用
ResultSet這個對象哈
作者: wind0299    時間: 2004-11-11 15:50
標(biāo)題: select cursor(select * from table ) from temp;
原帖由 "fuwenyu0307" 發(fā)表:
看不太明白你的SELECT語句。如果是返回一個結(jié)果集就用
ResultSet這個對象哈


這是新的sql的用法,現(xiàn)在我已經(jīng)知道怎么用啦,謝謝回復(fù)!!
      
作者: yaoxiujun    時間: 2004-11-11 23:24
標(biāo)題: select cursor(select * from table ) from temp;
能不能帖出來,跟樓主占點光。
作者: wind0299    時間: 2004-11-12 09:05
標(biāo)題: select cursor(select * from table ) from temp;
[quote]原帖由 "yaoxiujun"]能不能帖出來,跟樓主占點光。[/quote 發(fā)表:


Statement stmt2=this.conn.createStatement();
        
        ResultSet rs2=stmt2.executeQuery("select dev_cd,cursor(select * from fit_subdev) as cur_subdev from fit_dev";
        while(rs2.next()){
            System.out.println(rs2.getString(1));
            Object o=rs2.getObject(2);
            ResultSet rs3=(ResultSet) o;
            while(rs3.next()){
                System.out.println(rs3.getString(4));
               
            }
作者: solaris10    時間: 2004-11-12 09:09
標(biāo)題: select cursor(select * from table ) from temp;
新??呵呵
作者: wind0299    時間: 2004-11-12 09:29
標(biāo)題: select cursor(select * from table ) from temp;
[quote]原帖由 "solaris10"]新??呵呵[/quote 發(fā)表:


        
對樓上的是舊技術(shù),對我可是新技術(shù)哦!我查了好多oracle 10g的文檔才找到答案的,
在這里問了好久都沒有人回答我     
樓上的知道也不說,讓我郁悶了好幾天
        
作者: solaris10    時間: 2004-11-15 09:25
標(biāo)題: select cursor(select * from table ) from temp;
呵呵,我對英文文檔看的就是暈,我還是用mysql比較好一點




歡迎光臨 Chinaunix (http://72891.cn/) Powered by Discuz! X3.2