I want to drop certain tables in a tablespace that has common name appended to end of each table for an example:
TABLE1_NAME1_COMMON
TABLE2_NAME2_COMMON
TABLE3_NAME3_COMMON
I heard about Oracle functions but I’m not familiar much with those so I’m expecting some helping hand.
Thanks.
If you’re completely sure what you’re doing, ie, if you’re sure that you don’t accidentally drop a table that you don’t want to drop, you can do a:
Edit:
user_tablesinstead ofdba_tablesas it seems more safe to do.set serveroutput onin order fordbms_output.put_lineto be printedbegin .. exception .. endin order for errors to be shown.