锘??xml version="1.0" encoding="utf-8" standalone="yes"?>丁香花高清在线观看完整版,日本欧美韩国一区三区,亚洲最快最全在线视频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 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 武川县| 沾化县| 岳池县| 田林县| 收藏| 墨江| 台江县| 田东县| 龙岩市| 额尔古纳市| 高安市| 定襄县| 三都| 洪湖市| 通化县| 澜沧| 砚山县| 昆山市| 黄大仙区| 胶南市| 嘉义市| 赤壁市| 且末县| 长宁区| 博爱县| 丹寨县| 米林县| 海晏县| 平安县| 涞源县| 大兴区| 康平县| 黔东| 青铜峡市| 辛集市| 乌什县| 万安县| 兴隆县| 丹棱县| 于都县| 肥东县|