Revision 2377
Added by sgarg about 20 years ago
src/xmltables.sql | ||
---|---|---|
257 | 257 |
doctype VARCHAR2(100), -- public id indicating document type |
258 | 258 |
parentnodeid NUMBER(20), -- id of the parent of the node |
259 | 259 |
-- represented by this row |
260 |
nodedata VARCHAR2(4000), -- the data for the given path |
|
260 | 261 |
CONSTRAINT xml_index_pk PRIMARY KEY (nodeid,path), |
261 | 262 |
CONSTRAINT xml_index_nodeid_fk FOREIGN KEY (nodeid) REFERENCES xml_nodes, |
262 | 263 |
CONSTRAINT xml_index_docid_fk |
... | ... | |
267 | 268 |
* Index of the paths in xml_index |
268 | 269 |
*/ |
269 | 270 |
CREATE INDEX xml_index_idx1 ON xml_index (path); |
271 |
CREATE INDEX xml_index_idx2 ON xml_index (docid); |
|
270 | 272 |
|
271 | 273 |
CREATE TABLE xml_relation ( |
272 | 274 |
relationid NUMBER(20) PRIMARY KEY, -- unique id |
src/xmltables-postgres.sql | ||
---|---|---|
191 | 191 |
path VARCHAR(1000), -- precomputed path through tree |
192 | 192 |
docid VARCHAR(250), -- index to the document id |
193 | 193 |
doctype VARCHAR(100), -- public id indicating document type |
194 |
parentnodeid INT8, -- id of the parent of the node represented |
|
195 |
-- by this row |
|
194 |
parentnodeid INT8, -- id of the parent of the node represented |
|
195 |
-- by this row |
|
196 |
nodedata VARCHAR (4000),-- for storing data for a given path |
|
196 | 197 |
CONSTRAINT xml_index_pk PRIMARY KEY (nodeid,path), |
197 | 198 |
CONSTRAINT xml_index_nodeid_fk FOREIGN KEY (nodeid) REFERENCES xml_nodes, |
198 | 199 |
CONSTRAINT xml_index_docid_fk |
... | ... | |
203 | 204 |
* Index of the paths in xml_index |
204 | 205 |
*/ |
205 | 206 |
CREATE INDEX xml_index_idx1 ON xml_index (path); |
207 |
CREATE INDEX xml_index_idx2 ON xml_index (docid); |
|
206 | 208 |
|
207 |
|
|
208 | 209 |
CREATE SEQUENCE xml_relation_id_seq; |
209 | 210 |
CREATE TABLE xml_relation ( |
210 | 211 |
relationid INT8 default nextval('xml_relation_id_seq') PRIMARY KEY, |
Also available in: Unified diff
Modified xmltables to add nodedata as part of the xml_index tables.