日期:2014-05-17 浏览次数:21067 次
declare
v_tab_name varchar2(10);
v_col_name varchar2(10);
begin
for x in (select table_name from user_tables) loop
for xx in (select column_name from user_tab_columns where table_name = x.table_name) loop
begin
v_tab_name := x.table_name;
v_col_name := xx.column_name;
execute immediate 'alter table '
------解决方案--------------------
v_tab_name
------解决方案--------------------
' modify '
------解决方案--------------------
v_col_name
------解决方案--------------------
' not null';
execute immediate 'alter table '
------解决方案--------------------
v_tab_name
------解决方案--------------------
' modify '
------解决方案--------------------
v_col_name
------解决方案--------------------
' null';
exception