Subject | Re: [firebird-support] Re: Error Message in SP |
---|---|
Author | Helen Borrie |
Post date | 2007-04-25T05:00:20Z |
At 01:55 PM 25/04/2007, you wrote:
./heLen
>I made an error during cut and paste while posting the SP- the outputWhat data type is APPOINTMENT_STARTTIME?
>parameter should be ID_OUT and is an integer type.
>----
>CREATE PROCEDURE P_TESTING (
> DATE_IN TimeStamp)
> returns (
> ID_OUT Integer)
>AS
>
>begin
>FOR SELECT PIM_APPOINTMENTS.APPOINTMENT_ID FROM PIM_APPOINTMENTS
>WHERE
> EXTRACT(MONTH FROM APPOINTMENT_STARTTIME) = EXTRACT(MONTH FROM :DATE_IN)
> INTO
> :ID_OUT
> DO
> SUSPEND;
>end
./heLen