Search code examples
sqloracle-databasealter

alter a common column in multiple tables using a single statement


As we can alter multiple columns of a table in a single query.

Is there anyway we can alter a common column of multiple table in a single statement in Oracle?.


Solution

  • No, you can not do that.

    ALTER TABLE can only change a single table at a time.

    If you look at the syntax diagram

    enter image description here

    you will see that the part "schema.table" can not be repeated which would be necessary if you wanted to alter more than one table.