Subject | [ib-support] Re: unsuccessful metadata update |
---|---|
Author | Svein Erling Tysvaer |
Post date | 2002-10-15T11:55:52Z |
Seems like you should use FOR SELECT (can return multiple rows, often used
with SUSPEND) and not just SELECT (must return a single row when used in a SP).
Set
Create Procedure sp_Invoice_Labor
with SUSPEND) and not just SELECT (must return a single row when used in a SP).
Set
Create Procedure sp_Invoice_Labor
>(ServiceOrderId Integer)
>Returns
>(
>...
>)
>As
>Begin
> SELECT ...
> FROM LABORDETAIL A
> JOIN CLIENTEQUIPMENT B ON
>A.CLIENTEQUIPMENTID=B.CLIENTEQUIPMENTID
> WHERE A.SERVICEORDERID=:SERVICEORDERID
> Into ...;
> Suspend;
>End /* Procedure sp_Invoice_Labor */