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

다운로드
페이지 324
Technical implementation
Database design
50
  
 U929-J-Z125-9-76
3.3 Technical implementation 
3.3.1
Defining the logical structure of a UDS/SQL database 
The logical structure of a UDS/SQL database, i.e. the UDS/SQL schema, can be defined 
on the basis of either the CODASYL concept or the relational concept. 
CODASYL database design 
In a CODASYL database, data relationships are defined via database structures. A major 
advantage of this concept is that the database handler automatically checks these relation-
ships for consistency (referential integrity) at runtime. 
The language used to define a database is the schema DDL (Data Description Language).
Using the schema DDL to create a CODASYL database involves the following information 
objects: 
database realms 
types of records 
sets 
keys as optimized access paths 
sort procedures 
set membership 
set selection 
For a precise description of the schema DDL, see 
Relational database design 
In a relational database, the data relationships are defined by linking values at runtime. 
The components of a relational structure, i.e. tables (record types) and columns (items), are 
defined by means of the schema DDL. 
In order to represent the relationships between tables, it is also necessary to define the 
primary keys of the respective tables as foreign keys in the corresponding tables.
The users themselves must assign these primary and foreign keys and then check the 
relationships for uniqueness.
Users must also check these relationships at runtime in their respective programs. 
For a detailed description of the methods used to implement a conceptional schema in 
relational structures, you can either refer to database literature or attend courses on the 
subject.