danstout49 has asked for the wisdom of the Perl Monks concerning the following question:
In a Windows XP environment, running Perl 5.8, using “use DBI”, I need coding help. I create an Oracle DB table: CREATE TABLE Empl ( id INTEGER NOT NULL, name VARCHAR2(128), title VARCHAR2(128), phone CHAR(8) ) ; I load 4 rows into the table: 0,"Larry Wall","Perl Author","555-0101" ; 1,"Tim Bunce","DBI Author","555-0202" ; 2,"Randal Schwartz","Guy at Large","555-0303" ; 3,"Doug MacEachern","Apache Man","555-0404" ; Question 1: o What would the Perl code need to be to CREATE an Oracle stored pr +ocedure (say named “GetNaem”) to extract the NAME value for a passed +in ID# to the procedure (equivalent to: SELECT name FROM Empl WHERE i +d = ..PassedInValue.. ) Question 2: o What would the Perl code need to be to pass in that ID argument a +nd then retrieve the resultant data from that table via the stored pr +ocedure into a return variable? Thanks, Dan (Perl newbie)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: I need Perl stored procedure help (against Oracle DB)
by chargrill (Parson) on Feb 23, 2006 at 21:00 UTC | |
by danstout49 (Initiate) on Feb 23, 2006 at 21:49 UTC | |
by chargrill (Parson) on Feb 23, 2006 at 22:46 UTC | |
|
Re: I need Perl stored procedure help (against Oracle DB)
by Roy Johnson (Monsignor) on Feb 23, 2006 at 22:36 UTC | |
by InfiniteSilence (Curate) on Feb 23, 2006 at 22:43 UTC | |
by danstout49 (Initiate) on Mar 02, 2006 at 15:28 UTC |