Packermann
Programmer
I am a novice in Oracle. I need to create a procedure that inserts a value into a table, if the insert is successful, to return all the rows in that table. Particularly I am having trouble determining whether the insert is successful and I cannot use a <b>SELECT</b> without an <b>INTO</b><br>clause.<br><br>I am much more experienced in Microsoft SQLServer . This is how I would write the procedure SQLServer:<br><br><font color=red><b><br>CREATE PROCEDURE FOR sp_test<br>AS<br>INSERT INTO testtable VALUES ('test')<br>IF @@error = 0<br> SELECT * FROM testtable<br></b></font><br><br>I am actually surprised that such a simple procedure in MSS seems to be difficult in Oracle. We have a resident expert in Oracle who could not help. Could anybody out there help me?<br><br>