MyFunnyDev

web, coding and beyond

Archive for the ‘sql’ tag

drop all tables and sequences in oracle

without comments

tables:

SELECT 'DROP TABLE ' || table_name || ' CASCADE CONSTRAINTS;' FROM user_tables;

sequences:

SELECT 'DROP SEQUENCE ' || sequence_name || ';' FROM user_sequences;

Written by MichaƂ Kuklis

May 18th, 2009 at 11:07 am

Posted in Uncategorized

Tagged with