Datentypen und Relationenmodell - hafri.de
Datentypen und Relationenmodell - hafri.de
Datentypen und Relationenmodell - hafri.de
Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.
YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.
Ausgewählte <strong>Datentypen</strong> (SQL-Standard)<br />
Datenbanken<br />
numerische<br />
<strong>Datentypen</strong><br />
ganze Zahlen:<br />
TINYINT<br />
(±127)<br />
SMALLINT<br />
(±32767)<br />
INTEGER<br />
(±2147483647)<br />
BIGINT<br />
(±9223372036854775807)<br />
Dezimalzahlen:<br />
FLOAT / REAL<br />
(±3,402823466*10 38 )<br />
DOUBLE<br />
(±1,7976931348623157*10 308 )<br />
DECIMAL (OpenOffice)<br />
alphanumerische<br />
<strong>Datentypen</strong><br />
Text (character):<br />
VARCHAR<br />
(max. 255)<br />
LONGVARCHAR<br />
(max. 4294967295)<br />
sonstige <strong>Datentypen</strong><br />
BOOLEAN<br />
(ja/nein, 1/0)<br />
...<br />
...<br />
...<br />
<strong>Datentypen</strong> für<br />
Zeit <strong>und</strong> Datum<br />
Date / Time:<br />
DATE<br />
(DD.MM.YY - 01.01.09)<br />
TIME<br />
(hh:mm:ss - 15:45:56)<br />
© 2009 H. Fritzsche | http://www.<strong>hafri</strong>.<strong>de</strong>
Vom ER-Mo<strong>de</strong>ll zum <strong>Relationenmo<strong>de</strong>ll</strong><br />
Datenbanken<br />
ER-Mo<strong>de</strong>ll<br />
Attr_1 Attr_2 Attr_1 Attr_2 Attr_1 Attr_2<br />
1 n n 1<br />
Entitätstyp_1 Rel_1 Entitätstyp_2 Rel_2 Entitätstyp_3<br />
. . . . . . . . .<br />
<strong>Relationenmo<strong>de</strong>ll</strong> (Datenbanktabellen)<br />
Entitätstyp_1<br />
PK Attr_1<br />
Attr_2<br />
. . .<br />
. . .<br />
Datentyp<br />
Datentyp<br />
Entitätstyp_2<br />
1 1<br />
n<br />
PK Attr_1 Datentyp<br />
FK Attr_1 Datentyp<br />
n<br />
FK Attr_1 Datentyp<br />
Attr_2 Datentyp<br />
. . .<br />
. . .<br />
Entitätstyp_3<br />
PK Attr_1<br />
Attr_2<br />
. . .<br />
. . .<br />
Datentyp<br />
Datentyp<br />
© 2009 H. Fritzsche | http://www.<strong>hafri</strong>.<strong>de</strong>