锘??xml version="1.0" encoding="utf-8" standalone="yes"?>99久久99久久免费精品蜜臀,国产欧美日韩综合精品一区二区,久久久亚洲国产美女国产盗摄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 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 镶黄旗| 吉安县| 达州市| 木兰县| 文化| 科技| 呼和浩特市| 尉犁县| 敦煌市| 凤山市| 涞水县| 错那县| 石楼县| 抚远县| 垫江县| 大理市| 浏阳市| 南木林县| 涪陵区| 美姑县| 漯河市| 柘荣县| 旅游| 丰顺县| 岳西县| 牟定县| 金门县| 蒙自县| 朝阳市| 略阳县| 化德县| 灵山县| 台东市| 泗洪县| 彭州市| 永仁县| 甘泉县| 呼图壁县| 嘉兴市| 普宁市| 驻马店市|