SQL tips

Bind variable in DDL is not allowed

You cannot user a bind variable in DDL statements and ALTER is considered a DDL statement.

You would need to use dynamic sql for this

exec sql execute immediate .... some string ...;