Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Variables in TOAD, New to Oracle
Jim wrote:
> "Dave" <david.sharples3_at_ntlXworld.com> wrote in message news:<4aJCc.3984$pE6.2706_at_newsfe4-gui>... >
> > > My mistake, It should have been this, > > DECLARE > l_Month VARCHAR2(6) := 'MAY-04'; > > BEGIN > > select * from apps.gl_periods_v where period_set_name = > 'TUS_445_MTHLY' and period_name = l_Month; > > END; > > > I expect the output to go to the grid within TOAD. > > Thanks, > Jim
You can expect it to go anywhere you want, but PL/SQL expects to return the result into 1) a variable - for singleton select statements and 2) cursors if you are expecting more than one row to be returned.
And if you don't know the definitions of either, you are in over your head.
Michael Austin. Received on Fri Jun 25 2004 - 13:46:30 CDT
![]() |
![]() |