Skip to content
Advertisement

Calling Procedure with ‘call’ function from within P/L SQL Script Oracle

I am not able to run this simple if/then statement in oracle database. (i think it is 10.x but not sure, seems to be an issue of my sql skill not db version).

Can you help me figure out how to run this simple procedure- email_table_copy() – to send a csv copy of the table only if the table has data in it?

I have to use ‘call’ with the email_table_copy procedure, and it seems this is where the issue occurs.

I would really appreciate your help.

Advertisement

Answer

Just remove ; from your v_sql:

Also as you can see I’ve a bit modified your literal to q-literal to make it more readable.

Simple example:

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