Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Problems passing date with dynamic sql procedure.

Re: Problems passing date with dynamic sql procedure.

From: marcie <marcie.tietjen_at_westgroup.com>
Date: 21 Aug 2002 05:53:40 -0700
Message-ID: <899474e5.0208210453.3eba76a1@posting.google.com>


"Scott Mattes" <ScottMattes_at_yahoo.com> wrote in message news:<szw89.16122$WJ3.2636177_at_news1.news.adelphia.net>...
> My guess
>
> This is what you are doing from the command line
>
> execute p_sum(2,'02-Jun-2002')
>
> and this is what you are asking for from the procedure
>
> execute p_sum(2,02-Jun-2002)
>
> Try putting 2 more single quotes, before and after the date field, like this
>
>
> exe_ps := 'begin ' || procedure_name || '(' || time_type || ',''' ||
> report_date || '''); end;';
>
>
> and it will produce
>
> execute p_sum(2,'02-Jun-2002')
>

Scott - Thanks for the help. That's exactly what the problem was! Marcie Received on Wed Aug 21 2002 - 07:53:40 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US