PK
*Aoa, mimetypeapplication/epub+zipPK *A iTunesMetadata.plistV
This section lists new features for Release 11.2.2 that are documented in this reference and provides cross-references to additional information.
For the INSERT...SELECT
statement, you can reference the target table in the FROM
clause or in a subquery.
You can ALTER
a table to add a NOT
NULL
column with a default value. The DEFAULT
clause is required.
Support for in-memory columnar compression of tables. Compression is defined at the column level, which stores the data more efficiently. Eliminates redundant storage of duplicate values within columns and improves the performance of SQL queries that perform full table scans. See "In-memory columnar compression of tables", "CREATE TABLE", "ALTER TABLE", and "CREATE INDEX" for details on table compression support defined by each of these statements.
Support for LOB (large object) data types. This includes CLOB
(character LOB), NCLOB
(national character LOB), and BLOB
(binary LOB) data types. For more details, see "LOB data types".
Support for LOBs was added to the CREATE TABLE
, SELECT
, INSERT
, and UPDATE
SQL statements. LOBs are also supported in the LIKE
and IS [NOT] NULL
operators and the REPLACE
, LOWER
, UPPER
, TRIM
, LTRIM
, RTRIM
, ASCIISTR
, INSTR
, INSTRB
, INSTR4
, SUBSTR
, SUBSTRB
, SUBSTR4
, NLSSORT
, LPAD
, RPAD
, TO_DATE
, TO_NUMBER
, TO_CHAR
, LENGTH
, LENGTHB
, CONCAT
and NVL
functions.
Support for the following LOB functions: EMPTY_CLOB
, EMPTY_BLOB
, TO_LOB
, TO_CLOB
, TO_NCLOB
, and TO_BLOB
. For more information, see "LOB functions".
Support for the GROUP BY
statement: In this release, support was added for the GROUPING
SETS
, ROLLUP
and CUBE
clauses. In addition, the GROUPING
, GROUPING_ID
, and GROUP_ID
functions were also added. For details on the new clauses for the GROUP BY
statement, see "GROUP BY clause". For the new functions, see "Aggregate functions", "GROUP_ID", "GROUPING", and "GROUPING_ID".
Support for subquery factoring using the WITH
clause in the SELECT
statement. For more details, see "SELECT" and "WithClause".
The SQL functions were broken out of the "Expressions" chapter and are now located in alphabetical order in the new Chapter 4, "Functions". Included in this re-organization, all of the functions listed within the Aggregate functions, String functions, and USER functions were added to the alphabetical list.
Support for analytic functions. See "Analytic functions".
You can specify the AnalyticClause in aggregate functions AVG
, COUNT
, MAX
, MIN
, and SUM
. For more information, see "Aggregate functions" and "Analytic functions". See also the specific aggregate function, "AVG", "COUNT", "MAX", "MIN", and "SUM".
Support for analytic specific functions, "DENSE_RANK", "FIRST_VALUE", "LAST_VALUE", "RANK", and "ROW_NUMBER".
You can use cache grid functions to determine the location of data in a cache grid and then execute a query for the information from that node. See "Cache grid functions" for details.
Additional support for implicit data type conversion. See "Implicit data type conversion".
Additional support for datetime arithmetic. See "Datetime and interval data types in arithmetic operations".
You can specify DISTINCT
in an aggregate function to consider only distinct values of the argument expression. See "Aggregate functions" for details.
You can use character strings, columns, expressions, results from a function, or any combination in either the source or the pattern within the LIKE
predicate. See "LIKE predicate" for more details.
Support for the MONTHS_BETWEEN
function was added, which is described in "MONTHS_BETWEEN".
You can use NLS character set functions to retrieve the character set name or ID number. See "NLS character set functions" for details.
Null values have been expanded. See "Null values" for full details.
Support for the NULLIF
function was added, which compares two expressions. See "NULLIF" for full details.
You can use NULLS FIRST
or NULLS LAST
in your ORDER BY
clause. For more information, see "SELECT".
Range indexes used to be referred to as T-tree indexes. Now all output and commands use range as the identifying terminology. For example, in "NLSSORT", the output shows range indexes, such as "non-unique range index on columns."
Support for the REPLACE
function was added, which substitutes a sequence of characters in a given string with another set of characters or removes the string entirely. See "REPLACE" for details.
Support for SOUNDEX
function. See "SOUNDEX".
Support for TIMESTAMPADD
and TIMESTAMPDIFF
functions. See "TIMESTAMPADD" and "TIMESTAMPDIFF".
A data type defines a set of values. A reference to a data type specifies the set of values that can occur in a given context. A data type is associated with each value retrieved from a table or computed in an expression and each constant.
TimesTen follows the ODBC standard for type conversion. For more information, refer to ODBC API reference documentation, which is available from Microsoft or a variety of third parties. The following site contains Microsoft's ODBC API reference documentation:
http://msdn.microsoft.com/en-us/library/ms714562(VS.85).aspx
If you are using IMDB Cache, see "Mappings between Oracle and TimesTen data types" in Oracle In-Memory Database Cache User's Guide. This section compares valid data types for creating cache group columns, as well as type conversions for passthrough queries.
The following subjects describe data types in TimesTen:
TimesTen supports the data types in Table 1-1 in the default Oracle type mode. Type mode is a data store attribute, where TypeMode=0
indicates Oracle type mode and TypeMode=1
indicates TimesTen mode. For more information on data type modes, see "TimesTen type mode (backward compatibility)" and "TypeMode" in Oracle TimesTen In-Memory Database Reference.
Table 1-1 Data types supported in Oracle type mode
Data type | Description |
---|---|
Fixed-length binary value of For more details, see "BINARY and VARBINARY data types". | |
A 64-bit floating-point number. Minimum positive finite value: 2.22507485850720E-308 Maximum positive finite value: 1.79769313486231E+308 For more details, see "BINARY_DOUBLE". | |
A 32-bit floating-point number. Minimum positive finite value: 1.17549E-38F Maximum positive finite value: 3.40282E+38F For more details, see "BINARY_FLOAT". | |
A binary large object. Variable-length binary value with a maximum size of 16 MB. For more details, see "BLOB". | |
Fixed-length character string of length
A zero-length string is interpreted as
Alternatively, specify For more details, see "CHAR". | |
A character large object containing single-byte or multibyte characters. Variable-length large object with a maximum size of 4 MB. For more details, see "CLOB". | |
Stores date and time information: century, year, month, day, hour, minute, and second. Format is:
Valid date range is from January 1, 4712 BC to December 31, 9999 AD. There are no fractional seconds. Alternatively, specify For more details, see "DATE". | |
TimesTen partially supports interval types, expressed with the type Note: You cannot specify a column of an interval type. These are non-persistent types used in SQL expressions at runtime. In addition, for those comparisons where an interval data type is returned, the interval data type cannot be the final result of a complete expression. The For more details, see "TimesTen intervals". | |
Fixed-length string of The number of bytes required is 2* A zero-length string is interpreted as
Alternatively, specify For more details, see "NCHAR". | |
A national character large object containing Unicode characters. Variable-length character value with a maximum size of 4 MB. For more details, see "NCLOB". | |
Number having precision and scale. The precision ranges from 1 to 38 decimal. The scale ranges from -84 to 127. Both precision and scale are optional. If you do not specify a precision or a scale, TimesTen assumes the maximum precision of 38 and flexible scale.
For more details, see "NUMBER". | |
Variable-length string of The number of bytes required is 2* A zero-length string is interpreted as Nonpadded comparison semantics are used. Alternatively, specify For more details, see "NVARCHAR2". | |
An 18-byte character string that represents the address of a table row or materialized view row. Specify a literal For more details, see "ROWID data type". | |
A time of day between 00:00:00 (midnight) and 23:59:59 (11:59:59 pm), inclusive. The format is: Alternatively, specify For more details, see "TIME". | |
|
Stores year, month, and day values of the date plus hour, minute, and second values of the time. The
The fractional seconds precision range is 0 to 9. The default is 6. Format is:
Alternatively, specify For more details, see "TIMESTAMP". |
|
A signed eight-byte integer in the following range: -9,223,372,036,854,775,808 (-263) to 9,223,372,036,854,775,807 (263-1). Use For more details, see "TT_BIGINT". |
Stores date information: century, year, month, and day. The format is Valid dates are between 1753-01-01 (January 1, 1753) and 9999-12-31 (December 31, 9999). For more details, see "TT_DATE". | |
A signed integer in the range -2,147,483,648 (-231) to 2,147,483,647 (231-1).
For more details, see "TT_INTEGER". | |
|
A native signed 16-bit integer in the range -32,768 (-215) to 32,767 (215-1). Use
For more details, see "TT_SMALLINT". |
A date and time between 1753-01-01 00:00:00 (midnight on January 1, 1753) and 9999-12-31 23:59:59 pm (11:59:59 pm on December 31, 9999), inclusive. Any values for the fraction not specified in full microseconds result in a "
You can specify For more details, see "TT_TIMESTAMP". | |
|
Unsigned integer ranging from 0 to 255 (28-1). Use Since For more details, see "TT_TINYINT". |
Variable-length binary value having maximum length Alternatively, specify For more details, see "BINARY and VARBINARY data types". | |
Variable-length character string having maximum length
A zero-length string is interpreted as Nonpadded comparison semantics are used. Do not use the Alternatively, specify For more details, see "VARCHAR2". |
TimesTen supports ANSI SQL data types in Oracle type mode. These data types are converted to TimesTen data types with data stored as TimesTen data types. Table 1-2 shows how the ANSI SQL data types are mapped to TimesTen data types.
Table 1-2 Data type mapping: ANSI SQL to TImesTen
ANSI SQL data type | TimesTen data type |
---|---|
Character semantics is supported. | |
Floating-point number with a binary precision of 126. Alternatively, specify | |
Floating-point number with binary precision
Internally, Alternatively, specify
| |
| |
| |
| |
Specifies a fixed-point number with precision | |