我在oracle中建立了一个带参数的存储过程 create or replace procedure pro_selectbytid(tname varchar2)
as
begin
insert into sys.testcreatet values(sqe_id.nextval,tname);
commit;
end;,可是在调用时
try {
CallableStatement cstmt = conn.prepareCall("{call pro_selectbytid(?)}");
cstmt.setString(1, "aa");
cstmt.executeUpdate();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
报错,
PLS-00201: 必须说明标识符 'PRO_SELECTBYTID'请教各位,这是为什么啊?
as
begin
insert into sys.testcreatet values(sqe_id.nextval,tname);
commit;
end;,可是在调用时
try {
CallableStatement cstmt = conn.prepareCall("{call pro_selectbytid(?)}");
cstmt.setString(1, "aa");
cstmt.executeUpdate();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
报错,
PLS-00201: 必须说明标识符 'PRO_SELECTBYTID'请教各位,这是为什么啊?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货