IS_CHAR function - Amazon Redshift
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

IS_CHAR function

Checks whether a value is a CHAR. The IS_CHAR function returns true for strings that have only ASCII characters, because the CHAR type can store only characters that are in the ASCII format. The function returns false for any other values.





A SUPER expression or column.

Return type



To check if t is a CHAR using the IS_CHAR function, use the following example.

CREATE TABLE t(s SUPER); INSERT INTO t VALUES ('t'); SELECT s, IS_CHAR(s) FROM t; +-----+---------+ | s | is_char | +-----+---------+ | "t" | true | +-----+---------+