declare v_rowcount integer; begin select count(1) into v_rowcount from user_tab_columns where table_name=upper('表名') and column_name=upper('field attribute name'); if v_rowcount=0 then execute immediate 'alter table table name add field attribute name number(10) not null'; end if; end; /