--记得 in后面的查询语句一定要打括号,不然的话,就会提示报错
BEGIN
for customerFollowTableCursor in
(SELECT s.table_name tableName from user_tables s
where s.TABLE_NAME LIKE 'T_BC_CUSTOMERFOLLOW%' AND s.TABLE_NAME <> 'T_BC_CUSTOMERFOLLOW')
loop
dbms_output.put_line(customerFollowTableCursor.tableName);
end loop;
end parttablecustomerfollowProc;
create or replace procedure parttablecustomerfollowProc
asBEGIN
for customerFollowTableCursor in
(SELECT s.table_name tableName from user_tables s
where s.TABLE_NAME LIKE 'T_BC_CUSTOMERFOLLOW%' AND s.TABLE_NAME <> 'T_BC_CUSTOMERFOLLOW')
loop
dbms_output.put_line(customerFollowTableCursor.tableName);
end loop;
end parttablecustomerfollowProc;