62,612
社区成员
发帖
与我相关
我的任务
分享
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) {
...... //错误捕获
}