Character Types
AttentionThis page documents an earlier version. Go to the latest (v2.1)version.
Synopsis
Character types are used to specify data of a string of Unicode characters.
Syntax
type_specification ::= TEXT | VARCHAR
text_literal ::= "'" [ '' | letter ...] "'"
Where
TEXT
andVARCHAR
are aliases.- Single quote must be escaped as (“).
letter
is any character except for single quote ([^']
).
Semantics
- Columns of type
TEXT
orVARCHAR
can be part of thePRIMARY KEY
. - The length of
TEXT
string is virtually unlimited. - Currently, value of type character datatype are neither convertible nor comparable to non-text datatypes. This restriction will be removed.
See Also
当前内容版权归 YugabyteDB 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 YugabyteDB .