I seem to be failing to write a proper procedure and I am not sure why. Initially I tried using the oracle manager gui wizard thing to create a procedure, but it seems to require two lots of names (and then told me my query was invalid at line 1, col 7).
I then tried writing via SQL*Plus, but that did not seem to realise I had got to end of the string (either when I wrote it on one line, or over multiple lines), either way I had a matching set of brackets and a ; at the end.
I then tried the SQL scratch pad and that accepted what I was typing in, but did not seem to generate the producte anywhere. I have spent a good part of the day, and seem to be no closer than when I started!
I shall re-type my code below:
Any help is greatly appreciated. I am begining to wonder if I need to go on a basic oracle course!
Cheers,
Matt
I then tried writing via SQL*Plus, but that did not seem to realise I had got to end of the string (either when I wrote it on one line, or over multiple lines), either way I had a matching set of brackets and a ; at the end.
I then tried the SQL scratch pad and that accepted what I was typing in, but did not seem to generate the producte anywhere. I have spent a good part of the day, and seem to be no closer than when I started!
I shall re-type my code below:
Code:
CREATE OR REPLACE PROCEDURE mba_insert AS
BEGIN
INSERT INTO mbames.mba (id, name) values (2, "fred");
END;
Any help is greatly appreciated. I am begining to wonder if I need to go on a basic oracle course!
Cheers,
Matt