home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.databases.oracle      Overblown overpriced overengineered SHIT      2,288 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,456 of 2,288   
   Alex Ivascu to Eraser   
   Re: Newbie PL/SQL Question - Inserting i   
   01 Jun 04 16:46:52   
   
   From: alex@No-Spam-ivascu.com   
      
   There doesn't seem to be nothing wrong with your statement.   
   It might be the way SquirrelSQL interprets it.   
      
   Alex Ivascu   
      
      
   "Eraser"  wrote in message   
   news:pan.2004.05.30.09.57.25.494180@nospam.com...   
   > Hello,   
   >   
   >      I'm just starting to learn PL/SQL.  To get my feet wet,   
   > I'm trying to write a simple stored procedure that takes some   
   > values as parameters, and inserts those values into a table.   
   > For some reason my simple procedure is not working, I'm   
   > probably missing something simple.  Here is how I'm trying to   
   > create this procedure:   
   >   
   > CREATE OR REPLACE PROCEDURE insert_person(uid IN NUMBER,   
   >                                first_nm IN VARCHAR,   
   >        middle_nm IN VARCHAR,   
   >        last_nm IN VARCHAR) IS   
   > BEGIN   
   >   INSERT INTO PERSONS (prsn_uid, prsn_first_nm, prsn_middle_nm,   
   >       prsn_last_nm) values (uid, first_nm, middle_nm,   
   >       last_nm);   
   > END insert_person;   
   >   
   > I'm not sure this is relevant, but I'm typing the above   
   > declaration into an Java based SQL client called SquirrelSQL   
   > (http://sourceforge.net/projects/squirrel-sql/), the   
   > output I get after executing the above is:   
   >   
   > Warning:   Warning: execution completed with warning   
   > SQLState:  null   
   > ErrorCode: 17110   
   > 0 Rows Updated   
   > Query 1 elapsed time (seconds) - Total: 0.053, SQL query: 0.053,   
   > Building output: 0   
   > Error: java.sql.SQLException: ORA-00900: invalid SQL statement   
   >   
   > Can anyone please point out what is wrong with the above   
   > procedure?   
   >   
   > Thanks,   
   > Eraser   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca