I would like to create a temporary table to hold data from an existing table using the following code:
declare
begin
execute immediate 'create table test_tmp as select * from
test where col1 >= :create_date' USING SYSDATE ;
end;
/
when I run it using sqlplus I get the following message:
ERROR at line 1:
ORA-01027: bind variables not allowed for data definition operations
ORA-06512: at line 3
Can somebody help me with it?
Thanks