In SQL you have to use dynamic sql and the EXEC(EXECUTE) statement.
Oracle is the same, but you would use EXECUTE IMMEDIATE,
ie execute immediate 'drop table TEMPTBL';
it sounds like you are trying to create a procedure to do all your adhoc sql statements; you should not do that. it's bad practice, and leaves you open to SQL injection, as well as potentially poor performance because no plan will get cached.
if you have the table name and the WHERE statement, why not just do the ad hoc query directly from your application? why send it off to a proceudre?
Lowell