HP Neoview SQL Reference Manual page 75

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

Maximum Extents = minimum of ((Disk Size - Primary Extent Size) /
Secondary Extent Size, 768);
In most cases, the space allocated for the table after the first row is inserted is the value set
by this option, unless the value set is too big. If the value set by this option is less than or
equal to 1024 MB times the number of partitions, then the space allocated after the first row
is inserted is the value set by this option. In other cases, where the value set by this option is
greater than 1024 MB times the number of partitions, then the initial table space allocated
will be 1024 MB times the number of partitions. The rest of the space will be allocated as
needed when the secondary extents are allocated.
If you do not specify MAX TABLE SIZE, a table is created with the following default
characteristics:
For a partitioned table, the space is 25 MB times number of partitions. The maximum
size a partitioned table can reach is the size of the disk at the time of table creation. When
a partitioned table is created, the table is automatically partitioned across all the disk
volumes in the disk pool.
For a non-partitioned table, the space allocated is 25 MB.
DISK POOL pool_number
causes the table to be created in the specified pool number. The value of pool_number is
an unsigned integer. Zero (0) is not a valid pool number. If pool_number is greater than
the number of pools or if pool_number is an invalid number, an error is generated. See
"Considerations for DISK POOL" (page
NO INSERTLOG | INSERTLOG
specifies whether update and delete operations are recorded in the table's IUD log, if one
exists.
When a table is defined with the INSERTLOG attribute, logging operations ignore delete
and update operations and log inserts only.
This logging is needed to maintain ON REQUEST materialized views. If no ON REQUEST
materialized views are defined on the table, this attribute has no affect.
LOAD IF EXISTS
loads data into an existing table. Must be used with AS select-query. See
for LOAD IF EXISTS and NO LOAD options of CREATE TABLE AS" (page
NO LOAD
creates a table with the CREATE TABLE AS statement, but does not load data into the table.
See
"Considerations for LOAD IF EXISTS and NO LOAD options of CREATE TABLE AS"
(page
84).
AS select-query
specifies a select query which is used to populate the created table. A select query can be any
SQL select statement.
column data-type
specifies the name and data type for a column in the table. At least one column definition is
required in a CREATE TABLE statement.
column is an SQL identifier. column must be unique among column names in the table. If
the name is a Neoview SQL reserved word, you must delimit it by enclosing it in double
quotes. Such delimited parts are case-sensitive. For example: "join".
data-type is the data type of the values that can be stored in column. A default value must
be of the same type as the column, including the character set for a character column.
Types" (page
243). Data type also includes case specific information, such as UPSHIFT.
92).
"Considerations
84).
"Data
CREATE TABLE Statement
75

Advertisement

Table of Contents
loading

Table of Contents