Oracle Solution for Error ora-06547

Solution for Oracle Error ORA-06547

ORA-06547: RETURNING clause must be used with INSERT, UPDATE, or DELETE statements

What triggered the Error:

EXECUTE IMMEDIATE with a RETURNING clause is used to execute dynamic UPDATE, INSERT, or DELETE statements only.

What should we do to fix it:

use RETURNING clause in EXECUTE IMMEDIATE for INSERT, UPDATE, or DELETE statements only. For other statements, use USING clause instead.