1.1

Table Of Contents
Syntax
LN ( number )
LOG ( number )
LOG10 function
The LOG10 function returns the base-10 logarithm of the specied number.
The specied number must be a DOUBLE PRECISION on page 609 number that is greater than zero (0).
If the specied number is NULL, the result of this function is NULL.
If the specied number is zero or a negative number, an exception is returned that indicates that the value is
out of range (SQL state 22003).
The data type of the returned value is a DOUBLE PRECISION number.
Syntax
LOG10 ( number )
LOCATE function
The LOCATE function is used to search for a string within another string. If the desired string is found, LOCATE
returns the index at which it is found. If the desired string is not found, LOCATE returns 0.
Syntax
LOCATE(CharacterExpression, CharacterExpression [, StartPosition] )
There are two required arguments to the LOCATE function, and a third optional argument.
The rst CharacterExpression species the string to search for.
The second CharacterExpression species the string in which to search.
The third argument is the startPosition, and species the position in the second argument at which the search
is to start. If the third argument is not provided, the LOCATE function starts its search at the beginning of the
second argument.
The return type for LOCATE is an integer. The LOCATE function returns an integer indicating the index position
within the second argument at which the rst argument was rst located. Index positions start with 1. If the rst
argument is not found in the second argument, LOCATE returns 0. If the rst argument is an empty string (''),
LOCATE returns the value of the third argument (or 1 if it was not provided), even if the second argument is
also an empty string. If a NULL value is passed for either of the CharacterExpression arguments, NULL is
returned.
Examples
-- returns 2, since 'love' is found at index position 2:
VALUES LOCATE('love', 'clover')
vFabric SQLFire User's Guide560
vFabric SQLFire Reference