I have to delete a same column present in many tables. for e.g. column with name say ‘c’ is present in many tables..t1,t2,t3…
One solution is to write as many ALTER statements to drop a column as the number of tables having that column.
is there any way where I can do the same thing using single ALTER table statement.
No. An
ALTER TABLEstatement can not alter more than one table at a time. You could write some dynamic SQL based onALL_TAB_COLSe.g.then run that script. You might want to add
to specify an exact list of tables for extra piece of mind.