THX!
解决方案 »
- 请教 Oracle存储过程处理大对象clob问题!!~!
- 求一SQL获取表中,上下行某一字段的差值
- 有一句sql语句看不懂,求牛人帮解,在线等
- 请问下面的SQL该怎么写?
- ORA-00604: error occurred at recursive SQL level 2
- 请问关于C#调用oracle存储包返回游标的用法?
- SQLPLUS中如何返回指定的行数,在线,马上给份!
- 请教高手:在delphi6中, sys或system 等DBA用户如何连接到oracle9i ?
- ORACLE在LINUX下怎么安装 急!! 谢谢!!!
- oracle数据库按分区号清除数据的脚本
- local&remote 的速度问题,超级疑难
- 你知道那里可以下 oracle web DB, oracle JDeveloper,oracle Developer吗?
throws SQLException, NamingException{
long broadcastType = 1;
String sque = "begin :1 := procedure_name(:2, :3, :4, :5, :6); end;";
Connection conn = null;
CallableStatement cstmt = null;
ResultSet rset = null;
try{
DataSource ds = DataConnectionWB.getDataSource();
conn = ds.getConnection();
cstmt = conn.prepareCall(sque); cstmt.registerOutParameter(1, OracleTypes.VARCHAR);
cstmt.registerOutParameter(5, OracleTypes.VARCHAR);
cstmt.registerOutParameter(6, OracleTypes.NUMBER);
cstmt.setLong(2, userid);
cstmt.setLong(3, channelID);
cstmt.setLong(4, 2); cstmt.execute(); String sURL = cstmt.getString(1);
String sIP = cstmt.getString(5);
broadcastType = cstmt.getLong(6);
return sURL;
}
catch(Exception e){
return "";
}
}
c:\script.txt内容execute yourprocedurename;