13.07.2015 Views

Caché Transact-SQL (TSQL) Migration Guide - InterSystems ...

Caché Transact-SQL (TSQL) Migration Guide - InterSystems ...

Caché Transact-SQL (TSQL) Migration Guide - InterSystems ...

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.

T<strong>SQL</strong> Functions6.1.60 RTRIMRTRIM(string)Removes trailing blanks from string.6.1.61 SCOPE_IDENTITYReturns the last IDENTIFIER value allocated. However, the last IDENTIFIER is not limited to the scope of the currentprocedure. Therefore, you should only use SCOPE_IDENTITY() when you know that a statement within the current procedurehas generated an IDENTITY value.6.1.62 SIGNSIGN(num)Returns a value indicating the sign of num. If num is negative (for example, -32), it returns -1. If num is positive (forexample, 32 or +32), it returns 1. If num is zero (for example, 0 or -0), it returns 0.6.1.63 SINSIN(float)Sine: returns the sine of the angle specified in float. Thus 1 returns .841470984807...6.1.64 SPACESPACE(num)Returns a string of blank spaces of length num.6.1.65 SQRTSQRT(num)Returns the square root of num. Thus SQRT(9) returns 3.6.1.66 SQUARESQUARE(num)Returns the square of num. Thus SQUARE(9) returns 81.48 <strong>Caché</strong> <strong>Transact</strong>-<strong>SQL</strong> (T<strong>SQL</strong>) <strong>Migration</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!