Oracle 5.0 Reference Manual page 848

Table of Contents

Advertisement

A packed "exact" fixed-point number.
number of digits after the decimal point (the scale). The decimal point and (for negative numbers) the
"-" sign are not counted in M. If
number of digits (M) for
decimals (D) is 30. If
UNSIGNED, if specified, disallows negative values.
All basic calculations
Before MySQL 5.0.3:
An unpacked fixed-point number. Behaves like a
stored as a string, using one character for each digit of the value.
is the number of digits after the decimal point. The decimal point and (for negative numbers) the "-"
sign are not counted in M, although space for them is reserved. If
or fractional part. The maximum range of
range for a given
DECIMAL
default is 0. If
is omitted, the default is 10.
M
UNSIGNED, if specified, disallows negative values.
The behavior used by the server for
used to create the table. If your server is from MySQL 5.0.3 or higher, but you have
columns in tables that were created before 5.0.3, the old behavior still applies to those columns. To
convert the tables to the newer
DEC[(M[,D])] [UNSIGNED]
[ZEROFILL],
FIXED[(M[,D])] [UNSIGNED] [ZEROFILL]
These types are synonyms for DECIMAL. The
other database systems.
FLOAT[(M,D)] [UNSIGNED] [ZEROFILL]
A small (single-precision) floating-point number. Permissible values are
-1.175494351E-38, 0, and
limits, based on the IEEE standard. The actual range might be slightly smaller depending on your
hardware or operating system.
is the total number of digits and
M
omitted, values are stored to the limits permitted by the hardware. A single-precision floating-point
number is accurate to approximately 7 decimal places.
UNSIGNED, if specified, disallows negative values.
Using
might give you some unexpected problems because all calculations in MySQL are
FLOAT
done with double precision. See
DOUBLE[(M,D)] [UNSIGNED] [ZEROFILL]
A normal-size (double-precision) floating-point number. Permissible values are
-1.7976931348623157E+308
2.2250738585072014E-308
based on the IEEE standard. The actual range might be slightly smaller depending on your hardware
or operating system.
is the total number of digits and
M
omitted, values are stored to the limits permitted by the hardware. A double-precision floating-point
number is accurate to approximately 15 decimal places.
Numeric Type Overview
is the total number of digits (the precision) and
M
is 0, values have no decimal point or fractional part. The maximum
D
is 65 (64 from 5.0.3 to 5.0.5). The maximum number of supported
DECIMAL
is omitted, the default is 0. If
D
(+, -, *,
/) with
DECIMAL
DECIMAL
column may be constrained by the choice of
DECIMAL
format, dump them with
DECIMAL
[ZEROFILL],
1.175494351E-38
is the number of digits following the decimal point. If
D
Section C.5.5.7, "Solving Problems with No Matching
to -2.2250738585072014E-308, 0, and
to 1.7976931348623157E+308. These are the theoretical limits,
is the number of digits following the decimal point. If
D
828
is omitted, the default is 10.
M
columns are done with a precision of 65 digits.
column; "unpacked" means the number is
CHAR
is the total number of digits and
M
is 0, values have no decimal point
D
values is the same as for DOUBLE, but the actual
columns in a table depends on the version of MySQL
mysqldump
NUMERIC[(M[,D])] [UNSIGNED]
synonym is available for compatibility with
FIXED
to 3.402823466E+38. These are the theoretical
is the
D
and D. If
is omitted, the
M
D
DECIMAL
and reload them.
-3.402823466E+38
and
M
Rows".
and
M
D
to
are
D
are
D

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents