1DECLARE
2 l_cnt NUMBER;
3BEGIN
4 SELECT COUNT(*) INTO l_cnt
5 FROM dba_tab_columns
6 WHERE owner = 'my_owner'
7 AND table_name = 'my_table' AND column_name = 'my_column';
8 IF( l_cnt = 1 ) THEN
9 EXECUTE IMMEDIATE 'ALTER TABLE my_table DROP COLUMN my_column';
10 END IF;
11END;