Quote:
i want to create databases to store document with version and the doc name on it..
as example.. document A version 2 revision 1
so i guess my db name would be like..
documentA_version2_revision1
|
sorry i can't understand what you mean by this
You may want to create a
table to store documents.
The DDL of the table might be ...
Code:
CREATE TABLE your_schema.document
( doc_id INTEGER NOT NULL
, doc_name VARCHAR(100) NOT NULL
, version SMALLINT NOT NULL DEFAULT 1
, revision SMALLINT NOT NULL DEFAULT 1
, contents_summary VARCHAR(200)
, text CLOB
, ...
, PRIMARY KEY (doc_id , version , revision)
)
and store a codument to the table by:
INSERT INTO
your_schema.document
VALUES (1 , 'A' , 2 , 1 , '...' , ...)
or normalize the table to document_base table and document_revision table, or more tables.