• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
    • 軟件測試技術
    • 軟件測試博客
    • 軟件測試視頻
    • 開源軟件測試技術
    • 軟件測試論壇
    • 軟件測試沙龍
    • 軟件測試資料下載
    • 軟件測試雜志
    • 軟件測試人才招聘
      暫時沒有公告

    字號: | 推薦給好友 上一篇 | 下一篇

    Oracle Pro*C/C++游標和存儲過程性能測試報告

    發布: 2009-6-22 10:28 | 作者: 不詳 | 來源: 領測軟件測試網采編 | 查看: 228次 | 進入軟件測試論壇討論

    領測軟件測試網

    procedure get_R0BrdLib(

    batch_size in integer,

    found in out integer,

    done_fetch out integer,

    BoardType1 out numArrayType,/*單板類型Board Type*/

    BoardName1 out charArrayType/*各子單元類型包含的子單元個數Sunit Number Per Type*/) is

    begin

    if not CUR_R0BrdLib%isopen then

    open CUR_R0BrdLib;

    end if;

    done_fetch := 0;

    found := 0;

    for i in 1..batch_size loop

    fetch CUR_R0BrdLib

    into BoardType1(i),BoardName1(i);

    if CUR_R0BrdLib%notfound then

    close CUR_R0BrdLib;

    done_fetch := 1;

    exit;

    else

    found := found + 1;

    end if;

    end loop;

    end get_R0BrdLib;

    end testEptTbl;

    /

    show err


        1.3.2 游標方式:


    //倒出數據到zdb

    void CBOARDT::WriteZdb(int SubNetID,int NodeBID)

    {


    EXEC SQL BEGIN DECLARE SECTION;

    int iSubNetID = SubNetID;

    int iNodeBID = NodeBID;

    EXEC SQL END DECLARE SECTION;


    char tmpbuf[128],StartTime[256],EndTime[256];

    /* Set time zone from TZ environment variable. If TZ is not set,

    * the operating system is queried to obtain the default value

    * for the variable.

    */

    _tzset();


    /* Display operating system-style date and time. */

    _strtime( tmpbuf );

    sprintf( StartTime,%22OS time:\t\t\t%s\n%22, tmpbuf );


    /* Declare a cursor for the FETCH. */

    EXEC SQL DECLARE CUR_R_BOARDT CURSOR FOR

    SELECT byBoardType, abyBoardName FROM TB_BOARDT;


    EXEC SQL OPEN CUR_R_BOARDT;


    /* Initialize the number of rows. */

    num_ret = 0;


    int rows_ret=BATCHSIZE;

    while (BATCHSIZE == rows_ret)

    {

    // Fetch from the Cursor, catching all ORA ERROR condition

    EXEC SQL WHENEVER SQLERROR DO sqlerror(m_dbheader);

    EXEC SQL FETCH CUR_R_BOARDT INTO

    :bHostVar1,:chHostVar1;


    /* Write however many rows were returned. */

    rows_ret=sqlca.sqlerrd[2] - num_ret;

    WriteBatchToZdb(rows_ret,%22b01c01%22);

    num_ret = sqlca.sqlerrd[2]; /* Reset the number. */

    }


    /* Write remaining rows from last fetch, if any. */

    if ((sqlca.sqlerrd[2] - num_ret) > 0)

    WriteBatchToZdb(sqlca.sqlerrd[2] - num_ret,%22b01c01%22);


    延伸閱讀

    文章來源于領測軟件測試網 http://www.kjueaiud.com/

    43/4<1234>

    關于領測軟件測試網 | 領測軟件測試網合作伙伴 | 廣告服務 | 投稿指南 | 聯系我們 | 網站地圖 | 友情鏈接
    版權所有(C) 2003-2010 TestAge(領測軟件測試網)|領測國際科技(北京)有限公司|軟件測試工程師培訓網 All Rights Reserved
    北京市海淀區中關村南大街9號北京理工科技大廈1402室 京ICP備2023014753號-2
    技術支持和業務聯系:info@testage.com.cn 電話:010-51297073

    軟件測試 | 領測國際ISTQBISTQB官網TMMiTMMi認證國際軟件測試工程師認證領測軟件測試網

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>