Kexi/Håndbog/Introduktion til databaser/Hvad er en database?

From KDE UserBase Wiki
Revision as of 11:50, 22 June 2012 by Claus chr (talk | contribs) (Importing a new version from external source)
Other languages:

Hvad er en database?

Du kan definere en database som en samling af data om et emne. Den er organiseret på en måde, som gør det let at bladre igennem informationen, foretage ændringer og tilføje nye emner.

Look at this diagram for one of the above examples: a simple phone book.



The above picture shows a set of two contacts each of which is presented on a separate card. It appears that such a card can constitute a single row in a table:

Contacts table
Name Tel No.
Joan 699 23 43 12
Adam 711 19 77 21

Terms and definitions: A single data which constitutes a part of a greater collection can be called a row or more professionally a record. The collection is normally called a table. Moreover, the most natural name for the table is one describing the data it offers/stores which is Contacts. Furthermore, each row in the table consists of columns often also called fields. In the table Contacts there are two columns (fields): Name and Tel No..

For simple uses a single table can make up a database. Many people consider these two equivalent. As you will see, for real databases we usually need more than one table.

To sum up, you have already got a simple database with one table Contacts.