Data Types: Filtering, Functions, Subqueries
Data Types: Filtering, Functions, Subqueries
These are the ones I know, which can be used for like
Please update the list if I have left out any cases
Data Types
If a column called "LastName" is going to hold names, then that particular column should have a "varchar" (variable-
length character) data type.
The most common data types:
Numeric
INT -A normal-sized integer that can be signed or unsigned.
FLOAT(M,D) - A floating-point number that cannot be unsigned. You can optionally define the display length (M) and
the number of decimals (D).
DOUBLE(M,D) - A double precision floating-point number that cannot be unsigned. You can optionally define the
display length (M) and the number of decimals (D).
String Type
CHAR(M) - Fixed-length character string. Size is specified in parenthesis. Max 255 bytes.
VARCHAR(M) - Variable-length character string. Max size is specified in parenthesis.
BLOB - "Binary Large Objects" and are used to store large amounts of binary data, such as images or other types of files.
For example, the following means that the name column disallows NULL values.
During table creation, specify column level constraint(s) after the data type of that column.
-------------------------------------------------------------------------------------------------------------------
GIT comandaments
Action
Other