10.07.2015 Views

Ingres 9.2 Migration Guide - Actian

Ingres 9.2 Migration Guide - Actian

Ingres 9.2 Migration Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

DBMS Server EnhancementsImproved Performance of String ComparisonsThe performance of comparisons involving char and varchar values isimproved.Unicode Uppercase and Lowercase<strong>Ingres</strong> supports uppercase and lowercase operations on Unicode data typesnchar, nvarchar, and long nvarchar.Fetch First n and Offset nThe OFFSET clause and FETCH FIRST clause on the SELECT statement can beused to return a subset of rows from a result set.Users can code the “n” value of a FETCH FIRST n or OFFSET n specification in aSELECT statement as a host language variable in embedded SQL applications,or as a parameter or local variable in a database procedure.This feature is useful in Web-style applications that page results back to theuser, as in the results from using a web search engine.For example, the following query returns rows starting from the 25th row ofthe result set:SELECT * FROM MYTABLE ORDER BY COL1 OFFSET 25For example, the following query fetches only the first 10 rows of the resultset:SELECT * FROM MYTABLE ORDER BY COL1 FETCH FIRST 10 ROWS ONLYA query can use any combination of the ORDER BY, OFFSET, and FETCH FIRSTclauses, but in that order only.The OFFSET and FETCH FIRST clauses can be used only once per query, andcannot be used in unions or view definitions. They cannot be used insubselects, except a subselect in a CREATE TABLE statement or an INSERTstatement.The FETCH FIRST clause cannot be used in the same SELECT statement asSELECT FIRST rowcount.The syntax for each clause is OFFSET n or FETCH FIRST n, where n is apositive integer, a host variable, or a procedure parameter or local variable.Features Introduced in <strong>Ingres</strong> <strong>9.2</strong> 149

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!