锘??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 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 景东| 同心县| 鄂托克前旗| 永和县| 怀远县| 安庆市| 丹巴县| 商洛市| 德昌县| 额济纳旗| 海南省| 华宁县| 进贤县| 渑池县| 云梦县| 电白县| 辉县市| 茂名市| 来凤县| 靖江市| 济南市| 宜春市| 卢湾区| 邯郸县| 正宁县| 巫山县| 香格里拉县| 重庆市| 蓬安县| 萝北县| 色达县| 泰来县| 策勒县| 英山县| 安达市| 武鸣县| 耿马| 仲巴县| 保康县| 南部县| 韩城市|