June 2005
Intermediate
720 pages
20h 6m
English
Besides deciding what data types and sizes you should use for your columns, you should consider a handful of other properties.
First, every type can also be set as NOT NULL. The NULL value, in databases and programming, is equivalent to saying that the field has no value. Ideally, every field of every record in a database should have a value, but that is rarely the case in reality. To force a field to have a value, you add the NOT NULL description to its column type. For example, a required dollar amount can be described as
cost DECIMAL(5,2) NOT NULL
When creating a table, you can also specify a default value for any type. In cases where a majority of the records will have the same value for a column, presetting ...
Read now
Unlock full access