Difference between revisions of "DB2"
(→External Definition) |
(→External Definition) |
||
Line 11: | Line 11: | ||
Before the invention of this data base reality, we could only use Internal Definition of files. That means each and every program had to have its own layout of a file, and any dumps of the file showed all the data contigous, not breaking it up into meaningful fields. Forget about being able to access the data with programs like [[SQL]]. | Before the invention of this data base reality, we could only use Internal Definition of files. That means each and every program had to have its own layout of a file, and any dumps of the file showed all the data contigous, not breaking it up into meaningful fields. Forget about being able to access the data with programs like [[SQL]]. | ||
+ | |||
+ | With Internal Definition, each program only needed to define the fields it was going to use, which meant there might not be any one place to go for the complete layout of a file. | ||
+ | |||
+ | With External Definition, part of the DB2 file structure is the whole story on the file and its field layout, which can be accessed by any programming language in the [[IMB]] family. |
Revision as of 15:01, 6 June 2005
DB2 400 is the database built in to OS/400.
It can be accessed using two primary mechanisms ... SQL or directly from a high level language.
Features of DB2
Compared to how files could be structured and accessed on prior IBM and other platforms, DB2 had several revolutionary features that added to the potential programming power of the 400.
External Definition
Before the invention of this data base reality, we could only use Internal Definition of files. That means each and every program had to have its own layout of a file, and any dumps of the file showed all the data contigous, not breaking it up into meaningful fields. Forget about being able to access the data with programs like SQL.
With Internal Definition, each program only needed to define the fields it was going to use, which meant there might not be any one place to go for the complete layout of a file.
With External Definition, part of the DB2 file structure is the whole story on the file and its field layout, which can be accessed by any programming language in the IMB family.