8. 데이터 유형

제 8 장 데이터 유형
제 VIII. 데이터 유형
PostgreSQL는 사용자가 사용할 수있는 기본 데이터 유형 세트를 가지고있다. 사용자는 PostgreSQL의 새로운 유형을 추가 할 수 있습니다  (가) TYPE 명령을 CREATE 사용.
PostgreSQL는 다양한 데이터 유형에 대한 네이티브 지원을하고있다. 또한 사용자는 사용할 수있는  타입 CREATE 명령 정의 데이터 타입.
 
표 8.1 쇼 모든 내장 된 범용 데이터 유형. 에 나와있는 다른 이름의 대부분  은 "별칭"열은 역사적인 이유로 PostgreSQL을 내부적으로 사용하는 이름입니다. 또한, 일부 내부적으로 사용 또는 사용되지 않는 유형을 사용할 수 있습니다,하지만 여기에 나열되지 않습니다.
표 8.1는 내장 데이터 유형에 대한 지원을 제공합니다. 대부분 역사적인 이유 PostgreSQL을 위해, 별칭 열에 나열된 이름은 내부적으로 사용됩니다. 또한, 그것은 또한 내부의 몇 가지 유형을 제공하거나 권장하지 않습니다,하지만 여기에 나열되지 않습니다.
 
 
 
적합성
적합성
The following types (or spellings thereof) are specified by SQL: bigintbitbit varyingbooleancharcharacter varyingcharactervarchar,datedouble precisionintegerintervalnumericdecimalreal,smallinttime (with or without time zone), timestamp (with or without time zone), xml.
SQL指定了以下类型(或其拼写):bigint, bit, bit varying, boolean, char, character varying, character, varchar,date, double precision, integer, interval, numeric, decimal, real,smallint, time (带或不带时区), timestamp (带或不带时区), xml.
 
Each data type has an external representation determined by its input and output functions. Many of the built-in types have obvious external formats. However, several types are either unique to PostgreSQL,such as geometric paths, or have several possible formats, such as the date and time types. Some of the input and output functions are not invertible, i.e., the result of an output function might lose accuracy when compared to the original input.
每种数据类型都有一个由其输入和输出函数确定的外部表示形式。许多内置类型具有明显的外部格式。但是,有几种类型对于PostgreSQL是唯一的,例如几何路径,或者有几种可能的格式,例如日期和时间类型。一些输入和输出函数不可逆,即,与原始输入相比,输出函数的结果可能会失去准确性。
发布了341 篇原创文章 · 获赞 54 · 访问量 88万+

추천

출처blog.csdn.net/ghostliming/article/details/104589025