Skip Headers
Oracle® TimesTen In-Memory Database SQL Reference
Release 11.2.1

Part Number E13070-04
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

CHR

The CHR function returns the character having the specified binary value in the database character set.

SQL syntax

CHR(n)

Parameters

CHR has the parameter:

Parameter Description
n The binary value in the database character set. The character having this binary value is returned. The result is of type VARCHAR2.

Description

Note:

When you use the CHR function, the code is not portable between ASCII- and EBCDIC- based machine architectures.

Examples

The following example is run on an ASCII-based machine with the WE8ISO8859P1 character set.

Command> SELECT CHR(67)||CHR(65)||CHR(84) FROM DUAL;
< CAT >
1 row found.

On an EBCDIC-based machine with the character set WE8EBCDIC1047, the preceding example would have to be modified to the following:

Command> SELECT CHR(195)||CHR(193)||CHR(227) FROM DUAL;
< CAT >
1 row found.