We Recommend

SQL Cookbook SQL Cookbook
Written in O'Reilly's popular Problem/Solution/Discussion style, the SQL Cookbook is sure to please. Anthony's credo is: "When it comes down to it, we all go to work, we all have bills to pay, and we all want to go home at a reasonable time and enjoy what's still available of our days." The SQL Cookbook moves quickly from problem to solution, saving you time each step of the way.


Posted By

thecrumb on 01/23/08


Tagged

sql Oracle


Versions (?)


Generate the SQL necessary to create sequences for every table (Oracle)


Published in: SQL 


Generate the SQL necessary to create sequences for every table. NOTE: This doesn’t create sequences. The results need to be copied and run as a script.

  1. SELECT
  2. 'create sequence '
  3. || table_name
  4. || '_seq start with 1 nocache ;'
  5. FROM
  6. user_tables

Report this snippet 

You need to login to post a comment.