Partial-Width Insertion Rules - Sybase Adaptive Server IQ 12.4.2 Administration And Performance Manual

Table of Contents

Advertisement

Partial-width insertions

Partial-width insertion rules

198
Use
to specify at which row you want to start the insert. This
START ROW ID
allows you to insert into some of the columns in a row with one partial-width
or
INSERT
LOAD TABLE
same row with additional
If you try to insert into a column that already contains data, you get an error.
You must be sure to control the row at which each insertion starts. If you do not
use
, your insertion begins with the next row, and NULLs are
START ROW ID
inserted in the remaining columns of the current row, as shown in Figure 5-1.
(The two shading patterns represent data inserted into columns in two separate
insert operations.)
Figure 5-1: Using START ROW ID with partial-width insertions
Do not try to perform a partial-width insertion using the
Note
command format. Because you cannot specify
format, the problem shown in the figure results.
Column indexes that are not included in the initial partial-width insert, and
therefore do not already contain data, must allow NULLs. Adaptive Server IQ
inserts NULLs into these column indexes. If they do not allow NULLs, the
insert fails.
When doing partial-width inserts, follow these steps:
1
For the first partial-width insert for each set of rows, do not specify
. Adaptive Server IQ automatically knows what the next available
ROW ID
row is for this insert.
statement, and insert into the other columns in the
or
INSERT
LOAD TABLE
START ROW ID
statements.
INSERT VALUES
using this
START

Advertisement

Table of Contents
loading

Table of Contents