Navicat supports multiple data types, including integer types (TINYINT, SMALLINT, MEDIUMINT, INT, BIGINT), real number types (FLOAT, DOUBLE, DECIMAL), text types (CHAR, VARCHAR, TEXT), and binary types (BINARY, VARBINARY, BLOB), date and time types (DATE, TIME, DATETIME, TIMESTAMP), other types (ENUM, SET, BOOLEAN).
Navicat Data Types
Navicat supports a wide range of data types to meet the needs of different database management systems (DBMS) need. The following are common data types supported by Navicat:
Integer type:
-
TINYINT: 8-bit signed integer, range -128 to 127.
-
SMALLINT: 16-bit signed integer, range -32,768 to 32,767.
-
MEDIUMINT: 24-bit signed integer in the range -8,388,608 to 8,388,607.
-
INT: 32-bit signed integer, range -2,147,483,648 to 2,147,483,647.
-
BIGINT: 64-bit signed integer in the range -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.
Real type:
-
FLOAT: Single precision floating point type, ranging from -3.4028235e 38 to 3.4028235e 38, with a precision of 7 decimal places.
-
DOUBLE: Double precision floating point type, ranging from -1.7976931348623157e 308 to 1.7976931348623157e 308, with 15 decimal places of precision.
-
DECIMAL: A floating point type with fixed precision and decimal places, for example, DECIMAL(10,2) means a precision of 10 digits and a decimal place of 2 digits.
Text type:
-
CHAR: Fixed length character type, for example, CHAR(10) means the maximum length is 10 characters.
-
VARCHAR: Variable length character type, for example VARCHAR(100) means the maximum length is 100 characters.
-
TEXT: Large text type, unlimited length.
Binary type:
-
BINARY: Fixed length binary type, for example, BINARY(10) means the maximum length is 10 bytes.
-
VARBINARY: Variable length binary type, for example VARBINARY(100) means the maximum length is 100 bytes.
-
BLOB: Large binary type, unlimited length.
Date and time type:
-
DATE: Date type, representing date.
-
TIME: Time type, representing time.
-
DATETIME: Datetime type, representing date and time.
-
TIMESTAMP: Timestamp type, representing date, time and time zone.
Other types:
-
ENUM: Enumeration type, representing a limited set of values.
-
SET: Set type, representing a series of values.
-
BOOLEAN: Boolean type, indicating true or false.
The above is the detailed content of What are the data types of navicat. For more information, please follow other related articles on the PHP Chinese website!