日期:2014-05-17 浏览次数:21236 次
DECLARE FLAG NUMBER;
BEGIN
SELECT COUNT(1) INTO FLAG FROM user_views@LANDTAXDBLINK s WHERE s.view_name = 'yourViewName';
IF FLAG = 1 THEN
dbms_utility.exec_ddl_statement@LANDTAXDBLINK('drop VIEW yourViewName');
END IF;
END;