Chapter 8 Study Questions Flashcards
A column’s ____ ____ specifies the kind of information the column is intended to store; and it determines the operations that can be performed on the column.
data type
_________ ____ _____ are intended for storing a string of one or more characters, which can include letters, numbers, symbols, or special characters.
Character data types
The _______ ____ _____ are intended for storing numbers that can be used for mathematical calculations.
numeric data types
________ are numbers that do not have a decimal point.
Integers
____ _______ are numbers that have a decimal point.
Real numbers
____ ___ ____ ____ _____ are intended for storing dates, times or both dates and times.
Date and time data types
_____ ______ ____ _____ (___) are useful for storing images, sound, video, and large amounts of character data.
Large Object data types (LOB)
MySQL provides _______ ____ _____ that are useful for storing geometric and geographical values such as GPS data.
spatial data types
Use the CHAR type to store _____-______ ______. Data of this type always occupy the same number of bytes.
fixed-length strings
Use the _______ type to store variable-length strings. Data of this type occupies only the number of bytes needed to store the string in an extra byte to store the length of the string.
VARCHAR
If the ________ attribute for an integer is set, it prevents negative values from being stored in a column. And the range of acceptable positive values is doubled.
UNSIGNED
If the ________ attribute for an integer is set, the UNSIGNED attribute is automatically set, and the integer is displayed with zeros padded from the left up to the maximum display size.
ZEROFILL
It is common programming practice to use ___ as an abbreviation for INTEGER.
INT
The ____ ___ _______ types are synonyms for TINYINT(1). You can use these types to store 0 or FALSE for false values, and 1 or TRUE for true values.
BOOL and BOOLEAN
____ _______ can include digits to the right of the decimal point.
Real numbers