create or replace procedure testProcInsert(
p_sSno in string, p_sSname in string, p_sSex in string,
p_sAge in number,p_sSdept in string, p_iRetCode out number)
is
begin
p_iRetCode := 0;
insert into test(Sno, Sname, Ssex, Sage,Sdept)
VALUES(p_sSno, p_sSname, p_sSex,p_sAge,p_sSdept);
commit;
EXCEPTION
WHEN OTHERS THEN
p_iRetCode := SQLCODE;
end testProcInsert;错误提示:
example/TestOCI.cpp:218: syntax error before `or'                                                                                   ]
example/TestOCI.cpp:224: syntax error before `test'                                                                                 ?
example/TestOCI.cpp:226: ISO C++ forbids declaration of `commit' with                                                               ?
no type                                                                                                                             ?
example/TestOCI.cpp:228: syntax error before `OTHERS'                                                                               ?
example/TestOCI.cpp:230: syntax error before `;'                                                                                    ?
make: *** [example/TestOCI.o] 错误 1