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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DBMS Server EnhancementsAdditional SQL FunctionsNew SQL functions ease application migration.New numeric scalar functions include: • round - Returns a numeric value, rounded to the specified length or precision• ceiling - Returns smallest integer greater than or equal to the argument• floor - Returns largest integer less than or equal to the argument• truncate - Truncates x to y decimal places• atan2 - Arctangent of angle defined by coordinate pair (x, y)• acos(n) - Arccosine of cosine value n• asin - Arcsine value of sine value n• tan - Tangent value of angle n• pi - Value of pi (ratio of the circumference of a circle to its diameter)• sign - Returns -1 if n < 0, 0 if n = 0, +1 if n > 0For further details, see the section Numeric Functions in the SQL Reference<strong>Guide</strong>.New string scalar functions include:• chr - Converts integer into corresponding ASCII code.• ltrim - Returns a character expression with leading blanks removed• rtrim - Returns a character string with trailing blanks removed• lpad - Returns specified character string of specified length left-padded byblanks or copies of the second expression• rpad - Returns specified character string of specified length right-paddedby blanks or copies of the second expression• replace - Replaces all occurrences of a specified string value with anotherstring value• byteextract - Returns the nth byte of the specified string.Note: Byteextract can replace charextract, which now handles multi-bytecharacters and whose returned data type has changed from char(1) tovarchar(4).For further details, see the section String Functions Supported in the SQLReference <strong>Guide</strong>.Features Introduced in <strong>Ingres</strong> <strong>9.2</strong> 147

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

Saved successfully!

Ooh no, something went wrong!