Mixing DDL and DML statements in a single script
问题 I'm writing a script that will add an ID column to a table, including all the sequences and triggers to keep it automatically up to date. It will perform the following: Add a column to a table Create a sequence Create a trigger Update existing rows to use sequence values Set the field to not nullable The problem I have is with the line in bold - it would be an UPDATE statement in a DDL script. The error I get is: PLS-00103: Encountered the symbol "UPDATE" I've tried wrapping the UPDATE in a