Data Types Flashcards
Three main data types
Numeric , Date and Time , String
Can be considered domain types, governed by the nature of the data and how it’s manipulated
Can users input text into a numeric field
No, intelligent use of data types validates data entry
Data type controls what can be done with the information
A numeric value can be added to a string (varchar)
What is numeric?
A number field with or without decimal points
Data types Date and Time
Datetime - YYYY-MM‐DD HH:MM:SS
Date - YYYY-MM-DD
Timestamp YYYYMMDDHHMMSS
Time - HH:MM:SS
Year - YYYY
Data type String
CHAR - Fixed length string
VARCHAR - Variable length string
BLOB - Binary Large OBject
TEXT , TINYBLOB , TINYTEXT , MEDIUM BLOB
What is BLOB
Collection of binary data such as images, audio, or other multimedia (search is case sensitive)
Is TEXT similar to BLOB?
Yes, except searching is case insensitive