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 22-3 shows the table that is defined in simple installation.
Figure 22-3 Table used in the examples
To define the table and index:
CREATE TABLE manual( num CHAR(10) NOT NULL, doc SGMLTEXT ALLOCATE(SGMLTEXT IN(ULOB1)) PLUGIN '<DTD>MAN.DTD</DTD>' )IN (USR1); CREATE INDEX idx USING TYPE NGRAM ON manual(doc) IN(ULOB2); |
All Rights Reserved. Copyright (C) 2007, Hitachi, Ltd.