Loading...
MySQL 9.5 Reference Manual 9.5의 13 Data Types의 한국어 번역본입니다.
아래의 경우에 피드백에서 신고해주신다면 반영하겠습니다.
감사합니다 :)
Table of Contents
13.1 Numeric Data Types 13.1.1 Numeric Data Type Syntax 13.1.2 Integer Types (Exact Value) - INTEGER, INT, SMALLINT, TINYINT, MEDIUMINT, BIGINT 13.1.3 Fixed-Point Types (Exact Value) - DECIMAL, NUMERIC 13.1.4 Floating-Point Types (Approximate Value) - FLOAT, DOUBLE 13.1.5 Bit-Value Type - BIT 13.1.6 Numeric Type Attributes 13.1.7 Out-of-Range and Overflow Handling 13.2 Date and Time Data Types 13.2.1 Date and Time Data Type Syntax 13.2.2 The DATE, DATETIME, and TIMESTAMP Types 13.2.3 The TIME Type 13.2.4 The YEAR Type 13.2.5 Automatic Initialization and Updating for TIMESTAMP and DATETIME 13.2.6 Fractional Seconds in Time Values 13.2.7 What Calendar Is Used By MySQL? 13.2.8 Conversion Between Date and Time Types 13.2.9 2-Digit Years in Dates 13.3 String Data Types 13.3.1 String Data Type Syntax 13.3.2 The CHAR and VARCHAR Types 13.3.3 The BINARY and VARBINARY Types 13.3.4 The BLOB and TEXT Types 13.3.5 The VECTOR Type 13.3.6 The ENUM Type 13.3.7 The SET Type 13.4 Spatial Data Types 13.4.1 Spatial Data Types 13.4.2 The OpenGIS Geometry Model 13.4.3 Supported Spatial Data Formats 13.4.4 Geometry Well-Formedness and Validity 13.4.5 Spatial Reference System Support 13.4.6 Creating Spatial Columns 13.4.7 Populating Spatial Columns 13.4.8 Fetching Spatial Data 13.4.9 Optimizing Spatial Analysis 13.4.10 Creating Spatial Indexes 13.4.11 Using Spatial Indexes 13.5 The JSON Data Type 13.6 Data Type Default Values 13.7 Data Type Storage Requirements 13.8 Choosing the Right Type for a Column 13.9 Using Data Types from Other Database Engines
MySQL은 여러 범주의 SQL data type을 지원합니다. 범주에는 numeric type, date 및 time type, string (character 및 byte) type, spatial type, 그리고 JSON data type이 포함됩니다.
이 장에서는 각 범주에 속한 type의 속성에 대한 개요와 더 상세한 설명, 그리고 data type 저장 용량 요구 사항에 대한 요약을 제공합니다. 처음에 나오는 개요는 의도적으로 간략합니다. 값 지정 시 허용되는 형식과 같은 특정 data type에 대한 추가 정보는 보다 상세한 설명을 참조하십시오.
Data type 설명에서는 다음과 같은 규칙을 사용합니다:
integer type의 경우 _M_은(는) 최대 표시 폭을 나타냅니다. floating-point 및 fixed-point type의 경우 _M_은(는) 저장할 수 있는 숫자의 총 개수(precision)를 의미합니다. string type의 경우 _M_은(는) 최대 길이입니다. _M_의 허용 최대 값은 data type에 따라 달라집니다.
_D_는 floating-point 및 fixed-point type에 적용되며 소수점 이하 자리수(scale)를 나타냅니다. 가능한 최대 값은 30이지만, M −2를 초과해서는 안 됩니다.
_fsp_는 TIME,
DATETIME, 및
TIMESTAMP type에 적용되며 fractional seconds precision을 의미합니다. 즉, 초의 분수 부분에 대해 소수점 이하에 오는 숫자의 개수입니다. fsp 값이 지정되는 경우 0에서 6 사이여야 합니다. 값이 0이면 fractional part가 없음을 의미합니다. 생략되면 기본 precision은 0입니다. (이것은 이전 MySQL 버전과의 호환성을 위한 것으로, 표준 SQL의 기본값 6과는 다릅니다.)
대괄호([ 및 ])는 type 정의에서 선택적 부분을 나타냅니다.
12.16 MySQL Server Locale Support
13.1 Numeric Data Types