Drop sequences in current schema


/ Published in: PL/SQL
Save to your folder(s)



Copy this code and paste it in your HTML
  1. -- drop sequences from current schema
  2. sequence_name VARCHAR2(128);
  3. CURSOR usersequences IS SELECT * FROM user_sequences;
  4. FOR next_row IN usersequences
  5. EXECUTE IMMEDIATE 'drop sequence ' || next_row.sequence_name || '';
  6. /

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.