Sybase Adaptive Server IQ 12.4.2 Administration And Performance Manual page 219

Table of Contents

Advertisement

Example 1
l_orderkey
l_partkey
----------
---------
NULL
1
NULL
2
CHAPTER 5
2
For the second and any subsequent partial-width inserts for the same set of
rows, use the
START ROW ID
started. This number is the record number at the beginning of the insert
message log, as in this example:
In table 'department', the full width insert of 3
columns
will begin at record 1.
You can also use the
ROWID
query:
SELECT *, ROWID( table_name ) FROM table_name
The UNIX example below shows an incorrect insertion of four columns from
the file tt.t into the indexes on the
with one
statement and the second two columns with another
LOAD TABLE
statement, but does not use the
LOAD TABLE
additional columns.
LOAD TABLE lineitem
(l_partkey ASCII(4),
l_suppkey ASCII(4),
FILLER(13))
FROM '/d1/MILL1/tt.t'
PREVIEW ON
NOTIFY 1000
LOAD TABLE lineitem
(FILLER(8),
l_quantity ASCII(6),
l_orderkey ASCII(6),
FILLER(1))
FROM '/d1/MILL1/tt.t'
PREVIEW ON
NOTIFY 1000
The result of the
SELECT
instead of the correct number of 5.
SELECT *, rowid(lineitem) FROM lineitem
l_suppkey
---------
12
37
Moving Data In and Out of Databases
option to specify the row where the insert
function to display the row ID, as in the following
table. It inserts the first two columns
lineitem
START ROW ID
statement below shows that 10 rows are stored
l_quantity
rowid(lineitem)
------------
---------------
NULL
1
NULL
2
option to align the
199

Advertisement

Table of Contents
loading

Table of Contents