Use dynamic SQL.
Or DBMS_SQL package.