Pls help! Thanks! I have a stored procedure below, how do I get the resultset?
CREATE OR REPLACE PACKAGE BODY ois_pkg IS FUNCTION fn_tss_get_vsl_band(start_dt_in IN berth_allocation.atb_d +t%TYPE, end_dt_in IN berth_allocation.atb_dt%TYP +E) RETURN ref_cursor AS band_cursor ref_cursor; BEGIN OPEN band_cursor FOR SELECT v.vv_c, v.berth_seq_n, v.abbr_vessel_m, v.abbr_voya +ge_out_n, h.berth_m, v.atb_dt,v.atu_dt,b.band_m FROM v_berth_allocation v, vessel_target t, band b, berth +h WHERE v.vv_c = t.vv_c AND v.berth_seq_n = t.berth_seq_n A +ND t.band_c = b.band_c AND v.terminal_c = h.terminal_c AND v.berth_n = h.berth_n +AND h.berth_m NOT LIKE 'M%' AND (v.atb_dt>=sysdate-5 and v.atb_dt<= end_dt_in) AND (v.atu_dt is null OR (v.atu_dt>=start_dt_in and v.atu_ +dt<=sysdate)); RETURN band_cursor; END; END ois_pkg; / sho errors; /

In reply to Getting stored procedure results from Oracle using Perl by geraltan

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.