declare
--类型定义
cursor c_type
is
select u.table_name, t.column_name from user_all_tables u, user_tab_cols t
where u.table_name = t.table_name
and t.column_name like '%CERITYPE%'
order by u.table_name,t.column_name;
--定义一个游标变量v_cinfo c_emp%ROWTYPE ,该类型为游标c_emp中的一行数据类型
c_row c_type%rowtype;
sSql varchar(1000);
begin
for c_row in c_type loop
sSql := 'update ' || c_row.table_name || ' set ' || c_row.column_name || ' = "c" ' ;