锘??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 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 河津市| 信宜市| 苏尼特左旗| 榆林市| 东乡县| 聂拉木县| 监利县| 陇西县| 阿图什市| 丰县| 巴林右旗| 涟源市| 新津县| 屏东市| 大同市| 木里| 麦盖提县| 女性| 革吉县| 舞钢市| 海安县| 丰台区| 轮台县| 汶上县| 巴林左旗| 五指山市| 北票市| 罗山县| 镇安县| 福州市| 白玉县| 翼城县| 祁阳县| 英超| 泰安市| 淮滨县| 资源县| 花垣县| 威海市| 江门市| 赫章县|