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)

In reply to I need Perl stored procedure help (against Oracle DB) by danstout49

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.