ERROR | cannot perform a DDL, commit or rollback inside a query or DML |
CAUSE | DDL operations like creation tables, views etc. and transaction control statements such as commit/rollback cannot be performed inside a query or a DML statement. |
ACTION | Ensure that the offending operation is not performed or use autonomous transactions to perform the operation within the query/DML operation. |