Data types Flashcards

(18 cards)

1
Q

VARCHAR

A

string of various length (example – person’s name)

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

TEXT

A

long text strings, no length specification needed (example – product
description)

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

BLOB

A

binary large object, stores data like audio, video, images, files (example – product image)

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

CHAR

A

string of fixed length, adds spaces to the end of string to make it the
correct length

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

BINARY

A

Fixed-length binary string

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

VARBINARY

A

Variable-length binary string

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

ENUM

A

A list of predefined values where one can be entered. If adding a value not in the list, you get an empty string (example – clothing sizes

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

SET

A

A list of predefined values where zero or many can be entered (example – clothing sales seasons)

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

INT

A

A standard integer, no decimals/fractions (signed – zero and positive
numbers; unsigned – zero, positive, and negative numbers)

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

FLOAT

A

Storing an approximate decimal value with 6-9 significant figures

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

DOUBLE

A

Storing an approximate decimal value, more precise version of a
float with 15-17 significant figures

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

DECIMAL

A

specify maximum number of digits and the number of decimals.
Good for accuracy with 28-29 significant figures

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

BIT

A

binary values, either 0s or 1s, up to a certain length

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

DATE

A

date value in CCYY-MM-DD format

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

TIME

A

time value in hh:mm:ss format

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

YEAR

A

year value in CCYY or YY format

17
Q

DATETIME

A

date and time value in CCYY-MM-DD hh:mm:ss format (no
timezone information)

18
Q

TIMESTAMP

A

timestamp value in CCYY-MM-DD hh:mm:ss format