Reputation: 1305
For my business app using Oracle 11.2.0 as the backend, we're going to have a series of tables Foo{0}, where {0} is a date, and there will be one table for each month end (long story on why this is required, but those are my marching orders). Each table will have a primary key constraint and an index, using the same columns for all tables. Instead of defining a constraint and index for all tables, is it possible to create one of each and apply those to all tables? Thanks for any help.
Upvotes: 1
Views: 312
Reputation: 24301
There is not a good reason to create those 12 tables in Oracle 11.2.
I suggest:
Foo1
, Foo2
... Foo12
if required for compatability with existing codeUpvotes: 1
Reputation: 231711
No. If you want 12 separate tables you would need to define 12 separate primary key constraints (and 12 separate indexes if you don't want Oracle to automatically create the index when you create the constraint).
Upvotes: 2