日期:2014-05-20 浏览次数:21130 次
create procedure addemp as
begin
insert into emp(empno) values(1111);
end;
/
public static void main(String[] args) throws Exception {
Connection conn = OracleConnection.getConnection();
CallableStatement cs = conn.prepareCall("{call scott.addemp()}");
cs.execute();
conn.close();
}
try {
cs.execute();
} catch (SQLException se) {
...... //错误捕获
}