Data Types Flashcards

1
Q

Three main data types

A

Numeric , Date and Time , String

Can be considered domain types, governed by the nature of the data and how it’s manipulated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Can users input text into a numeric field

A

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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is numeric?

A

A number field with or without decimal points

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Data types Date and Time

A

Datetime - YYYY-MM‐DD HH:MM:SS
Date - YYYY-MM-DD
Timestamp YYYYMMDDHHMMSS
Time - HH:MM:SS
Year - YYYY

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Data type String

A

CHAR - Fixed length string
VARCHAR - Variable length string
BLOB - Binary Large OBject
TEXT , TINYBLOB , TINYTEXT , MEDIUM BLOB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is BLOB

A

Collection of binary data such as images, audio, or other multimedia (search is case sensitive)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Is TEXT similar to BLOB?

A

Yes, except searching is case insensitive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly