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
  • No tags were found...

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

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

Supported Functions6.1.54 RANDRAND([seed])Returns a random number as a fractional number less than 1. The optional seed integer argument is ignored; it is providedfor compatibility. If RAND is used more than once in a query it returns different random values.6.1.55 REPLACEREPLACE(target,search,replace)Finds every instance of the search string in the target string and replaces it with the replace string, and returns the resultingstring. To remove the search string from the target string, specify replace as an empty string.6.1.56 REPLICATEREPLICATE(expression,repeat-count)REPLICATE returns a string of repeat-count instances of expression, concatenated together.If expression is NULL, REPLICATE returns NULL. If expression is the empty string, REPLICATE returns an emptystring.If repeat-count is a fractional number, only the integer part is used. If repeat-count is 0, REPEAT returns an empty string.If repeat-count is a negative number, NULL, or a non-numeric string, REPEAT returns NULL.Repeats string for the number of times specified by the integer num.REPLICATE returns NULL if either argument is NULL. If string is the empty string (''), REPLICATE returns the emptystring. If num is a negative number, REPLICATE returns NULL. If num is zero, REPLICATE returns the empty string.6.1.57 REVERSEREVERSE(string)Reverses the order of the characters in string.6.1.58 RIGHTRIGHT(string,int)Returns int number of characters from string, counting from the right. If int is larger than string, the full string is returned.See LEFT.6.1.59 ROUNDROUND(num,length)Returns num rounded to the number of decimal digits specified by the integer length. If length is greater than the numberof decimal digits, no rounding is performed. If length is 0, num is rounded to an integer. If the length argument is omitted,it defaults to 0. If length is a negative integer, num is rounded to the left of the decimal point. A third argument is notaccepted by ROUND.<strong>Caché</strong> <strong>Transact</strong>-<strong>SQL</strong> (T<strong>SQL</strong>) <strong>Migration</strong> <strong>Guide</strong> 45

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

Saved successfully!

Ooh no, something went wrong!