Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

use cte in stored proc in oracle sql developer

user8941841Aug 16 2017 — edited Aug 17 2017

hi

I need to create stored proc in oracle sql developer , where I  have multiple cte which inserts data into tables.

create or replace procedure p_new

as

begin

insert into table1

(with cte

(

select * from tableb

)

select a.name from tableb a)

end;

/

this gives me error :table or view does not exist and sql stm ignored.

any help

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 14 2017
Added on Aug 16 2017
10 comments
1,509 views