Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Script Result Set
Mon, Mar 15 2010 2:55 PMPermanent Link

John Hay

Is there a way to get EDB Manager to show a result set when executing a
script?

John

Mon, Mar 15 2010 3:58 PMPermanent Link

Uli Becker

John ,

> Is there a way to get EDB Manager to show a result set when executing a
> script?

Do you mean something like this:

SCRIPT
BEGIN
  DECLARE RESULT CURSOR with return for stmt;
  Prepare stmt from
  'select * from mytable';
  Open result;
END

Uli
Mon, Mar 15 2010 4:25 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

John,

<< Is there a way to get EDB Manager to show a result set when executing a
script? >>

Sure.  What you want is the WITH RETURN clause as part of the DECLARE
statement for the cursor:

http://www.elevatesoft.com/manual?action=viewtopic&id=edb2sql&topic=DECLARE

Uli gave a good example in his post.

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, Mar 16 2010 5:30 AMPermanent Link

John Hay

Thanks Uli & Tim.

John

Image