Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

passing a date parm to plsql webtoolkit using a URL

joecbcSep 23 2013 — edited Sep 24 2013

I am running plsql webtoolkit procedure.  I would like to pass a date to do a search within the plsql code

This is what I am passing

http://server:port/apex/proc_name?var1=DTE&var2=09/01/2013&var3=09/30/2013

 

CREATE OR REPLACE PROCEDURE

proc_name(var1 in varchar2, var2 in date, var3 in date) as

 

select

col.date_changed from tablea where

 

(col.date_changed > to_date(var2, 'MM/DD/YYYY') and col.date_changed < to_date(var3, 'MM/DD/YYYY'))

The procedure does compile but I get an error when using the URL .. Is this the proper format for passing date parms in the webtoolkit plsql ?

This post has been answered by BluShadow on Sep 24 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 22 2013
Added on Sep 23 2013
8 comments
435 views