Menu
Amazon Redshift
Database Developer Guide (API Version 2012-12-01)

String Functions

String functions process and manipulate character strings or expressions that evaluate to character strings. When the string argument in these functions is a literal value, it must be enclosed in single quotes. Supported data types include CHAR and VARCHAR.

The following section provides the function names, syntax, and descriptions for supported functions. All offsets into strings are 1-based.

Deprecated Leader Node-Only Functions

The following string functions are deprecated because they execute only on the leader node. For more information, see Leader Node–Only Functions

  • ASCII

  • GET_BIT

  • GET_BYTE

  • OCTET_LENGTH

  • SET_BIT

  • SET_BYTE

  • TO_ASCII