Corel wordperfect office 2002 ユーザーズマニュアル

ページ / 394
Working
with tables and records
In a database, information is stored in tables. There are three aspects to every database table.
Ÿ
Table structure
¾
the arrangement of fields, data types and sizes. By carefully designing your
table fields, you build a solid framework to house your data in an orderly fashion.
Ÿ
Special table properties
¾
the rules that dictate what and how data can be entered. This
aspect of table creation is critical to ensuring that the data you enter into your table is
correct, complete, and complies with a prescribed format.
Ÿ
Table records
¾
the groups of values or data that make up your table
Creating a table structure
The basic aspects of a table structure are field names, types, and sizes. It is important to plan
your table structure carefully from the outset so that you don’t run into problems later on, as you
add data.
You can create your table from scratch, defining each field to suit your needs exactly, or you can
create a table based on a predefined template using the Table Expert. With either approach, you
can restructure your table after it is created.
Choose your field sizes according to the number of characters in the longest entry you expect to
make for each field. It is easier to design all of your field sizes to be large, but remember that
large fields take up more disk space (whether they are full or not). Paradox automatically assigns
sizes for certain field types, such as number, money, short, and long integer.
Choose a field type according to the type of data you want to store in the field. The following
table outlines the various field types available in Paradox.
Type (symbol)
Description
Alpha (A)
Contains letters, numbers, and other printable
ASCII characters. Maximum size: 255 characters.
Number (N)
Contains numbers ranging from -10
307
to 10
308
with
15 significant digits. These fields are best used for
performing calculations.
Money ($)
Contains only numbers. Displays decimal places
and $ symbol.
Short (S)
Contains whole numbers ranging from -32,767 to
32,767.
Working with tables and records
353