SHOW CHARACTER SET

Precautions

N/A

Function

Displays all supported character sets.

Syntax

SHOW {CHARACTER SET | CHARSET} [LIKE 'pattern' | WHERE expr]

Parameter Description

  • WHERE expr

    Filters expressions.

  • LIKE 'pattern'

    Indicates that the pattern regular expression matches the name of the character set.

Return Result Set

ColumnDescriptionRemarks
charsetCharacter set name.
descriptionCharacter set description.
default collationDefault collation of character sets.This column is empty.
maxlenMaximum number of bytes required to store a character.

Examples

openGauss=# SHOW CHARACTER SET LIKE 'a%';
 charset |    description    | default collation | maxlen
---------+-------------------+-------------------+--------
 abc     | alias for WIN1258 |                   |      1
 alt     | alias for WIN866  |                   |      1
(2 rows)
Feedback
编组 3备份
    openGauss 2024-10-16 00:54:45
    cancel