Connecting Tech Pros Worldwide Help | Site Map

how to create a view inside a stored procedure

Newbie
 
Join Date: Sep 2009
Posts: 1
#1: Sep 21 '09
Hi,

Im somewhat new to oracle SP writing. I need to do the following from the SP

1. execute the query
2. create a view and populate with the result of the above query
3 query that view and take the result set to the application

your comments are much appreciated.
amitpatel66's Avatar
Moderator
 
Join Date: Mar 2007
Location: Hyderabad, India
Posts: 2,192
#2: Sep 23 '09

re: how to create a view inside a stored procedure


Check out EXECUTE IMMEDIATE statment to run DDL commands in a Stored Procedure
Reply