Re: Cursor Issue??

From: "DracKewl" <bradbudge(at)hotmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Cursor Issue??
Date: 2005-07-27 00:50:15
Message-ID: 1122425415.117586.36370@f14g2000cwb.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2005-07-27 01:35:06 Re: Problem with text_pattern_ops
Previous Message DracKewl 2005-07-27 00:46:27 Re: Select Stament Issue??