Oracle Data Cartridge Datatype Conversion

2-8 Oracle Complex Event Processing CQL Language Reference

2.4 Literals

The terms literal and constant value are synonymous and refer to a fixed data value. For example, JACK, BLUE ISLAND, and 101 are all text literals; 5001 is a numeric literal. Oracle CEP supports the following types of literals in Oracle CQL statements: ■ Text Literals ■ Numeric Literals ■ Datetime Literals ■ Interval Literals

2.4.1 Text Literals

Use the text literal notation to specify values whenever const_string, quoted_ string_double_quotes, or quoted_string_single_quotes appears in the syntax of expressions, conditions, Oracle CQL functions, and Oracle CQL statements in other parts of this reference. This reference uses the terms text literal, character literal , and string interchangeably. Text literals are enclosed in single or double quotation marks so that Oracle CEP can distinguish them from schema object names. You may use single quotation marks ’ or double quotation marks . Typically, you use double quotation marks. However, for certain expressions, conditions, functions, and statements, you must use the quotation marks as specified in the syntax given in other parts of this reference: either quoted_string_double_quotes or quoted_ string_single_quotes . If the syntax uses simply const_string, then you can use either single or double quotation marks. If the syntax uses the term char, then you can specify either a text literal or another expression that resolves to character data. When char appears in the syntax, the single quotation marks are not used. Oracle CEP supports Java localization. You can specify text literals in the character set specified by your Java locale. For more information, see: ■ Section 1.2.1, Lexical Conventions ■ Section 2.9, Schema Object Names and Qualifiers ■ const_string::= on page 7-12

2.4.2 Numeric Literals

Use numeric literal notation to specify fixed and floating-point numbers.

2.4.2.1 Integer Literals

You must use the integer notation to specify an integer whenever integer appears in expressions, conditions, Oracle CQL functions, and Oracle CQL statements described in other parts of this reference. The syntax of integer follows: