TimesTen In-Memory Database SQL Reference
ContentsOpens a new window
Opens a new window
Page 4 of 13

What's New

This section lists new features for Release 11.2.2 that are documented in this reference and provides cross-references to additional information.

New features in Release 11.2.2.6.0

New features in Release 11.2.2.5.0

  • When using the WITH clause, you can specify the set operators UNION, MINUS, and INTERSECT in the main query. For more information on the WITH clause, see "WithClause"Opens a new window.

  • You can use the CREATE [UNIQUE] HASH INDEX statement to create a hash index. For more information on creating hash indexes, see "CREATE INDEX"Opens a new window.

  • You can use statement level optimizer hints in SQL statements. For more information on statement level optimizer hints, see "Statement level optimizer hints"Opens a new window.

  • For the CREATE TABLE statement, you can specify the keyword ENABLE as part of the NOT NULL constraint in a column definition. For more information, see "Column Definition"Opens a new window.

  • You can specify more than one subquery in the SET clause of the UPDATE statement. You can also specify a SELECT DISTINCT subquery in the SET clause of the UPDATE statement. For more information on the UPDATE statement, see "UPDATE"Opens a new window.

  • You can use the SET COMMIT_BUFFER_SIZE_MAX clause of the ALTER SESSION statement to set the maximum size of the commit buffer when a connection is in progress. For more information, see "ALTER SESSION"Opens a new window.

  • You can specify the COMMIT EVERY n ROWS clause in the UNLOAD CACHE GROUP statement. For more information, see "UNLOAD CACHE GROUP"Opens a new window.

  • You can specify the TABLE DEFINITION CHECKING clause as a StoreAttribute for both the CREATE ACTIVE STANDBY PAIR and the ALTER ACTIVE STANDBY PAIR statements. For more information, see "CREATE ACTIVE STANDBY PAIR"Opens a new window.

  • You can specify the DISTINCT qualifier in scalar subqueries. For more information, see "Subqueries"Opens a new window.

New features in Release 11.2.2.4.0

  • For the INSERT...SELECT statement, you can reference the target table in the FROM clause or in a subquery. For more information, see "INSERT...SELECT"Opens a new window.

  • You can ALTER a table to add a NOT NULL column with a default value. The DEFAULT clause is required. For more information on the ALTER TABLE statement, see"ALTER TABLE"Opens a new window.

New features in Release 11.2.2.1.0

  • 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"Opens a new window, "CREATE TABLE"Opens a new window, "ALTER TABLE"Opens a new window, and "CREATE INDEX"Opens a new window for details on table compression support defined by each of these statements.

New features in Release 11.2.2.0.0

  • 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"Opens a new window.

    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"Opens a new window.

  • 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"Opens a new window. For the new functions, see "Aggregate functions"Opens a new window, "GROUP_ID"Opens a new window, "GROUPING"Opens a new window, and "GROUPING_ID"Opens a new window.

  • Support for subquery factoring using the WITH clause in the SELECT statement. For more details, see "SELECT"Opens a new window and "WithClause"Opens a new window.

  • The SQL functions were broken out of the "Expressions" chapter and are now located in alphabetical order in the new Chapter 4, "Functions"Opens a new window. Included in this re-organization, all of the functions listed within the Aggregate functionsOpens a new window, String functionsOpens a new window, and User and session functionsOpens a new window were added to the alphabetical list.

  • Support for analytic functions. See "Analytic functions"Opens a new window.

  • You can specify the AnalyticClause in aggregate functions AVG, COUNT, MAX, MIN, and SUM. For more information, see "Aggregate functions"Opens a new window and "Analytic functions"Opens a new window. See also the specific aggregate function, "AVG"Opens a new window, "COUNT"Opens a new window, "MAX"Opens a new window, "MIN"Opens a new window, and "SUM"Opens a new window.

  • 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"Opens a new window for details.

  • TimesTen provides additional support for implicit data type conversion. See "Implicit data type conversion"Opens a new window.

  • TimesTen provides additional support for datetime arithmetic. See "Datetime and interval data types in arithmetic operations"Opens a new window.

  • You can specify DISTINCT in an aggregate function to consider only distinct values of the argument expression. See "Aggregate functions"Opens a new window 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"Opens a new window for more details.

  • TimesTen supports the MONTHS_BETWEEN function. For more information, see "MONTHS_BETWEEN"Opens a new window.

  • You can use NLS character set functions to retrieve the character set name or ID number. See "NLS character set functions"Opens a new window for details.

  • TimesTen extends support for null values. For more information, see "Null values"Opens a new window.

  • TimesTen supports the NULLIF function. For more information, see "NULLIF"Opens a new window.

  • You can use NULLS FIRST or NULLS LAST in your ORDER BY clause. For more information, see "SELECT"Opens a new window.

  • 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"Opens a new window, 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"Opens a new window for details.

  • TimesTen supports the SOUNDEX function. See "SOUNDEX"Opens a new window.

  • TimesTen supports the TIMESTAMPADD and TIMESTAMPDIFF functions. See "TIMESTAMPADD"Opens a new window and "TIMESTAMPDIFF"Opens a new window.