INTEGERSMALLINTNUMERIC(precision, scale)FLOAT(precision)REALDOUBLEAUTOINCREMENT
type which means that a numeric type can be defined as one that grows automaticly with a constant number. This
type is commonly used for ID fields that only serve as keys. It is not necessary to put any value to such a field,
it's good enough that every entity automaticly gets its own unique ID.
CHAR(length)VARCHAR(length)DATETIMETIMESTAMPINTERVAL| Attribute | Datatype | Required | Default value | Restrictions |
|---|---|---|---|---|
| Code | CHAR(6) | Yes | The first three characters are letters and the last three are numbers. | |
| Name | VARCHAR(64) | Yes | ||
| Credits | FLOAT | Yes | 1 | Only integers and halves. |