NOT IN and Null Values

Conditions 6-11 ]]view query id=Q1[CDATA[ V1 not in V2 ]]query 6-12 Oracle Complex Event Processing CQL Language Reference 7 Common Oracle CQL DDL Clauses 7-1 7 Common Oracle CQL DDL Clauses This chapter describes the Oracle CQL data definition language DDL clauses that appear in multiple Oracle CQL statements.

7.1 Introduction to Common Oracle CQL DDL Clauses

Oracle CQL supports the following common DDL clauses: ■ array_type on page 7-2 ■ attr on page 7-4 ■ attrspec on page 7-6 ■ complex_type on page 7-7 ■ const_int on page 7-11 ■ const_string on page 7-12 ■ const_value on page 7-13 ■ identifier on page 7-15 ■ l-value on page 7-18 ■ methodname on page 7-19 ■ non_mt_arg_list on page 7-20 ■ non_mt_attr_list on page 7-21 ■ non_mt_attrname_list on page 7-22 ■ non_mt_attrspec_list on page 7-23 ■ non_mt_cond_list on page 7-24 ■ param_list on page 7-25 ■ qualified_type_name on page 7-26 ■ query_ref on page 7-28 ■ time_spec on page 7-29 ■ xml_attribute_list on page 7-31 ■ xml_attr_list on page 7-32 ■ xqryargs_list on page 7-33 For more information on Oracle CQL statements, see Chapter 20, Oracle CQL Statements . 7-2 Oracle Complex Event Processing CQL Language Reference array_type Purpose Use the array_type clause to specify an Oracle CQL data cartridge type composed of a sequence of complex_type components, all of the same type. Prerequisites None. Syntax array_type::= l-value::= on page 7-18, qualified_type_name::= on page 7-26 Symantics Array Declaration You declare an array type using the qualified_type_name of the Oracle CQL data cartridge complex_type . Only arrays of complextype are supported: you cannot declare an array of Oracle CQL simple types unless there is an equivalent type defined in the Oracle CQL Java data cartridge. For examples, see: ■ Array Declaration Example: complex_type on page 7-3 ■ Array Declaration Example: Oracle CQL Simple Type on page 7-3 Array Access You access a complex_type array element by integer index. The index begins at 0 or 1 depending on the data cartridge implementation. There is no support for the instantiation of new array type instances directly in Oracle CQL at the time you access an array. For example, the following is not allowed: SELECT java.lang.String[10] ... For examples, see Array Access Examples on page 7-3. Examples The following examples illustrate the various semantics that this statement supports: ■ Array Declaration Example: complex_type on page 7-3 ■ Array Declaration Example: Oracle CQL Simple Type on page 7-3 Note: Oracle CQL supports single-dimension arrays only. That is, you can use java.lang.String[] but not java.lang.String[][].