Is it possible to create a table within a PL/SQL block? Basically I am checking user_tables to see if a table exists, and if it doesn't then I am creating it.
Code:
declare
v_count number;
begin
select count(*) into v_count from user_tables
where table_name = 'TEMP_2YEAR_DRIVER';
if v_count = 0 then
create table temp_2year_driver as (
select A, B, C
from subscriber);
end if;
commit;
end;