Scalable Database Server, HiRDB Version 8 Installation and Design Guide
This section explains the definition of a table for storing the SGML documents in order to create a database and the definition of the index that is needed for data retrieval.
Figure 23-3 shows the table that is defined in simple installation.
Figure 23-3 Table used in the examples
To define the table and index, use the following procedure:
CREATE TABLE manual(
num CHAR(10) NOT NULL,
doc SGMLTEXT
ALLOCATE(SGMLTEXT IN((ULOB1),(ULOB2)))
PLUGIN '<DTD>MAN.DTD</DTD>'
)IN((USR1) <= '1',
(USR2));
CREATE INDEX idx
USING TYPE NGRAM
ON manual(doc)
IN((ULOB3),(ULOB4));
|
All Rights Reserved. Copyright (C) 2007, Hitachi, Ltd.