SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
declare obj_name varchar2(100); begin select OBJECT_NAME into obj_name from dba_objects where OBJECT_NAME='LOCKED_USERS' AND owner='RT_DBA' and created < sysdate-1; if obj_name='LOCKED_USERS' then execute_immediate ('drop table RT_DBA.'||obj_name); --dbms_output.put_line('droped table RT_DBA.'||obj_name); else dbms_output.put_line('Table not found.'); end if; exception when others then null; end;

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear