Subject | Re: Using First in Stored Procedure |
---|---|
Author | Adam |
Post date | 2006-06-29T01:05:46Z |
--- In firebird-support@yahoogroups.com, "Muthu Annamalai"
<pearlamerica@...> wrote:
SELECT FIRST 3 RECEIPT.RECEIPTNUMBER
FROM RECEIPT
WHERE RECEIPT.CUSTOMERID = :CUSTOMERID
INTO :RECEIPT1
DO
BEGIN
SUSPEND;
END
Adam
<pearlamerica@...> wrote:
>FOR
> Hi,
>
> I am having problem in using First. Here is my SP
>
> SELECT FIRST 3 RECEIPT.RECEIPTNUMBER
> FROM RECEIPT
> WHERE RECEIPT.CUSTOMERID = :CUSTOMERID
> INTO :RECEIPT1, :RECEIPT2, :RECEIPT3;
SELECT FIRST 3 RECEIPT.RECEIPTNUMBER
FROM RECEIPT
WHERE RECEIPT.CUSTOMERID = :CUSTOMERID
INTO :RECEIPT1
DO
BEGIN
SUSPEND;
END
Adam