Numeric Data Types Flashcards

1
Q
BIT(size)
Type?
bits per value?
Size Parameter?
Default?
A

A bit-value type.
specified insize.
value from 1 to 64.
default value forsizeis 1.

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

TINYINT(size)

A

very small integer
signed range -128 to 127
unsigned range 0 to 255
parameter is max display width 255

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

BOOL

A

0 is considered as false

nonzero is considered as true

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

BOOLEAN

A

Equal to BOOL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
SMALLINT(size)
Type?
bits per value?
Size Parameter?
Default?
A

small integer
signed range -32768 to 32767
unsigned range 0 - 65535
parameter is max display width 255

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
MEDIUMINT(size)
Type?
bits per value?
Size Parameter?
Default?
A

Medium integer
signed range -8388608 to 8388607
unsigned range 0 to 16777215
parameter is max display width 255

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
INT(size)
Type?
bits per value?
Size Parameter?
Default?
A

medium integer
Signed range -2147483648 to 2147483647
unsigned range 0 to 4294967295
parameter is max display width 255

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
INTEGER(size)
Type?
bits per value?
Size Parameter?
Default?
A
equal to INT
medium integer
Signed range   -2147483648 to 2147483647
unsigned range 0 to 4294967295
parameter is max display width 255
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
BIGINT(size)
Type?
bits per value?
Size Parameter?
Default?
A

Large integer
signed range from -9223372036854775808 to 9223372036854775807
unsigned range 0 to 18446744073709551615
parameter is max display width 255

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
FLOAT(size,d)
Type?
bits per value?
Size Parameter?
Default?
A

Floating point number
total digits specified in size
number of digits after the decimal is specified in the d parameter
being decommissions from SQL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
DOUBLES(size,d)
Type?
bits per value?
Size Parameter?
Default?
A

normal size floating point
total digits specified in size
number of digits after decimal place in the D parameter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
DECIMAL(size,d)
Type?
bits per value?
Size Parameter?
Default?
A

exact fixed point number
total digits specified in size
number of digits after decimal specified in D parameter
Max size is 65
Max number for D is 30
Default value for size is 10 default value for D is 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
DEC(size,d)
Type?
bits per value?
Size Parameter?
Default?
A

equal to decimal
exact fixed point number
total digits specified in size
number of digits after decimal specified in D parameter
Max size is 65
Max number for D is 30
Default value for size is 10 default value for D is 0

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

FLOAT(p)

A

floating point number
SQL uses the P value to determin wether to use FLOAT or DOUBLE for the resulting data type
If p is from 0 to 24 FLOAT is used
If p is from 25 to 53 DOUBLE is used

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