最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Oracle Table Demo語句應(yīng)用介紹

 更新時(shí)間:2012年11月23日 09:26:09   作者:  
在開發(fā)過程中可能會(huì)用到oracle table demo 操作語句,本文將以此進(jìn)行介紹,需要的朋友可以參考下
在開發(fā)過程中可能會(huì)用到oracle table demo 操作語句,本文將以此進(jìn)行介紹,需要的朋友可以參考下
Sql代碼
復(fù)制代碼 代碼如下:

-- Created on 2010/07/29 by WANGNAN
declare
-- Local variables here
i1 VARCHAR2( 20) := '1' ;
i2 VARCHAR2( 20) := '1' ;
i3 VARCHAR2( 20) := '2' ;
i4 VARCHAR2( 20) := '3' ;
i5 VARCHAR2( 20) := '3' ;
i6 VARCHAR2( 20) := '3' ;
i7 VARCHAR2( 20) := '5' ;
i_before VARCHAR2( 20);
TYPE t_type IS TABLE OF VARCHAR2(20 );
t_table t_type;
BEGIN
-- Test statements here
t_table := t_type();
t_table.extend;
t_table(1) := i1;
t_table.extend;
t_table(2) := i2;
t_table.extend;
t_table(3) := i3;
t_table.extend;
t_table(4) := i4;
t_table.extend;
t_table(5) := i5;
t_table.extend;
t_table(6) := i6;
t_table.extend;
t_table(7) := i7;
FOR i IN 1 .. t_table.count LOOP
IF i_before IS NULL OR i_before <> t_table(i) THEN
i_before := t_table(i);
dbms_output.put_line(t_table(i));
END IF ;
END LOOP;
EXCEPTION WHEN OTHERS THEN
dbms_output.put_line( Sqlerrm);
end;

相關(guān)文章

最新評論

晋中市| 津南区| 庆元县| 台前县| 南丰县| 淮安市| 尤溪县| 双城市| 杨浦区| 龙川县| 雷波县| 饶河县| 河北区| 太和县| 靖宇县| 洪湖市| 枝江市| 含山县| 石泉县| 西林县| 石棉县| 堆龙德庆县| 尼勒克县| 高要市| 永登县| 宜君县| 赣州市| 富锦市| 抚松县| 浦东新区| 京山县| 永年县| 新疆| 沙河市| 齐齐哈尔市| 清丰县| 昌吉市| 襄城县| 竹溪县| 兰考县| 凌云县|