Fujitsu UDS/SQL V2.5 사용자 설명서

다운로드
페이지 324
Schema DDL
OWNER clause and SEARCH KEY clause
U929-J-Z125-9-76
  
105
D
ok
us
c
h
abl
on
en
 1
9x
24 V
e
rs
ion
 7
.3
us
 f
ü
r F
ram
eM
ak
er
 V
7
.x
v
o
m
 1
4.
02
.2
00
7
©
 c
o
gni
tas
 Gm
b
H
 20
01-
20
07
24
. Ok
tobe
r 20
07
  S
ta
nd
 0
9:
30
.2
3
P
fa
d:
 G
:\
v
og
t\
fs
c
\ud
s
\M
anu
al
e
\e
n\
ud
s
e
nt
_e\
u
ds
ent
.k
0
4
4.8 Special sets 
4.8.1
SYSTEM set 
OWNER IS SYSTEM.
A record type which is not related to a higher-ranking record type on the basis of its data 
structure can still be declared member of a set. 
This applies in the following cases: 
For reasons of sequential processing, the records are to be in a different order than 
ascending order according to database key values (see 
 an
 ff). 
Only a certain collection of records is to be processed (see 
). 
In these cases, the record type is declared member of a set which has only a symbolic 
owner record type named SYSTEM. Accordingly such sets are called SYSTEM sets. 
The symbolic owner record type contains exactly one record which is automatically 
generated by UDS/SQL. It is called an anchor record. A SYSTEM set thus consists of just 
one set occurrence. 
In addition to the possibilities of a normal set, SYSTEM sets allow direct access via hash 
routines. 
Defining secondary keys for conversion by hash routine 
SEARCH KEY IS item-name,... USING CALC[ hash-routine]
    DUPLICATES ARE[ NOT] ALLOWED
A key declared by SEARCH KEY IS... is a SEARCH key or secondary key. It may be consist 
of more than one item. 
item-name
 specifies the item(s) comprising the key. All items must be part of the corre-
sponding member record type. 
DUPLICATES ARE[ NOT] ALLOWED specifies whether UDS/SQL is to accept or reject 
duplicate key values.