锘??xml version="1.0" encoding="utf-8" standalone="yes"?>eeuss影院一区二区三区,久久久久一本一区二区青青蜜月,亚洲不卡一区二区三区http://www.aygfsteel.com/hk2000c/category/27381.html鎶鏈簮浜庡摬瀛︼紝鍝插鏉ユ簮浜庣敓媧? 鍏沖績鐢熸椿錛屽叧娉ㄥ仴搴鳳紝鍏沖績浠栦漢 zh-cnFri, 16 Nov 2007 09:29:06 GMTFri, 16 Nov 2007 09:29:06 GMT60Java璋冪敤Oracle鐨勮繃紼嬪拰鍑芥暟http://www.aygfsteel.com/hk2000c/archive/2007/11/16/161077.htmlhk2000chk2000cFri, 16 Nov 2007 09:18:00 GMThttp://www.aygfsteel.com/hk2000c/archive/2007/11/16/161077.htmlhttp://www.aygfsteel.com/hk2000c/comments/161077.htmlhttp://www.aygfsteel.com/hk2000c/archive/2007/11/16/161077.html#Feedback0http://www.aygfsteel.com/hk2000c/comments/commentRss/161077.htmlhttp://www.aygfsteel.com/hk2000c/services/trackbacks/161077.html鍐呭鎴栫畝浠嬶細
/**
璋冪敤鏁版嵁搴撻噷鐨勪竴涓嚱鏁?br /> 涓涓嚱鏁版湰璐ㄤ笂涓涓繑鍥炰竴涓粨鏋滅殑瀛樺偍榪囩▼錛岃繖涓緥瀛愮ず鑼冧簡鎬庝箞璋冪敤鏈塱n銆乷ut鍜宨n/out鍙傛暟鐨勫嚱鏁?br /> ***********************************/
CallableStatement cs;
try {
// 璋冪敤涓涓病鏈夊弬鏁扮殑鍑芥暟; 鍑芥暟榪斿洖 a VARCHAR
// 棰勫鐞哻allable璇彞

  cs = connection.prepareCall("{? = call myfunc}");

// 娉ㄥ唽榪斿洖鍊肩被鍨?br /> cs.registerOutParameter(1, i);

// Execute and retrieve the returned value
cs.execute();
String retValue = cs.getString(1);

// 璋冪敤鏈変竴涓猧n鍙傛暟鐨勫嚱鏁? the function returns a VARCHAR
cs = connection.prepareCall("{? = call myfuncin(?)}");

// Register the type of the return value
cs.registerOutParameter(1, Types.VARCHAR);

// Set the value for the IN parameter
cs.setString(2, "a string");

// Execute and retrieve the returned value
cs.execute();
retValue = cs.getString(1);

// 璋冪敤鏈変竴涓猳ut鍙傛暟鐨勫嚱鏁? the function returns a VARCHAR
cs = connection.prepareCall("{? = call myfuncout(?)}");

// Register the types of the return value and OUT parameter
cs.registerOutParameter(1, Types.VARCHAR);
cs.registerOutParameter(2, Types.VARCHAR);

// Execute and retrieve the returned values
cs.execute();
retValue = cs.getString(1);           // return value
String outParam = cs.getString(2);    // OUT parameter

// 璋冪敤鏈変竴涓猧n/out鍙傛暟鐨勫嚱鏁? the function returns a VARCHAR
cs = connection.prepareCall("{? = call myfuncinout(?)}");

// Register the types of the return value and OUT parameter
cs.registerOutParameter(1, Types.VARCHAR);
cs.registerOutParameter(2, Types.VARCHAR);

// Set the value for the IN/OUT parameter
cs.setString(2, "a string");

// Execute and retrieve the returned values
cs.execute();
retValue = cs.getString(1);           // return value
outParam = cs.getString(2);           // IN/OUT parameter
} catch (SQLException e) {
}



hk2000c 2007-11-16 17:18 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 龙门县| 广昌县| 于田县| 平果县| 即墨市| 大连市| 大田县| 米易县| 深泽县| 龙川县| 保德县| 宿松县| 盐城市| 六安市| 乌审旗| 呼和浩特市| 盐津县| 津市市| 乐平市| 二连浩特市| 江永县| 吉安县| 西宁市| 万盛区| 洪湖市| 游戏| 平罗县| 米脂县| 汉川市| 阿坝| 新邵县| 中西区| 马尔康县| 涟水县| 天门市| 八宿县| 北票市| 鄂托克旗| 民和| 封丘县| 大冶市|