Re: Cursor Issue?? - Mailing list pgsql-general

From DracKewl
Subject Re: Cursor Issue??
Date
Msg-id 1122425415.117586.36370@f14g2000cwb.googlegroups.com
Whole thread Raw
In response to Cursor Issue??  ("DracKewl" <bradbudge@hotmail.com>)
List pgsql-general
Here is a further test:

------------------------------------------------------
BEGIN WORK;
DECLARE cursor1 CURSOR FOR SELECT * FROM PARTS;
FETCH FIRST IN cursor1;
INSERT INTO partstemp VALUES (PARTS.QTY, PARTS.LENGTH, PARTS.WIDTH);
CLOSE cursor1;
COMMIT WORK;
------------------------------------------------------

What I get is the whole table put into partstemp.  I just wanted the
one row???
One more question what is the difference between using the term IN vs.
FROM?


pgsql-general by date:

Previous
From: Ezequiel Tolnay
Date:
Subject: Re: Wishlist?
Next
From: "DracKewl"
Date:
Subject: Select Stament Issue??