Skip to content
Advertisement

How to create an Oracle Procedure which includes a Subquery for an SQL Insert Into clause?

I have a problem to declare an Database Procedure, which includes an SQL Insert Into Statement with a subquery. I use an Oracle database. I get an errormessage, that tells me the From keyword was not found where expected (ORA-00923). Could somebody explain me, how I create this syntax error in the following example ?

Is there a problem with the sign in this code?. Thanks for helping me !

Advertisement

Answer

Remove the opening and closing braces around the select and use the below

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement