1.0

Table Of Contents
Example
The RECEIVED column contains a timestamp that has an internal value equivalent to
2005-12-25-17.12.30.000000. To return only the seconds part of the timestamp, use the
following syntax:
SECOND(RECEIVED)
The value 30 is returned.
SESSION_USER function
When used outside stored routines, SESSION_USER, USER function on page 543, and CURRENT_USER
function on page 525 all return the authorization identier of the user that created the SQL session.
SESSION_USER also always returns this value when used within stored routines.
If used within a stored routine created with EXTERNAL SECURITY DEFINER, however, USER and
CURRENT_USER return the authorization identier of the user that owns the schema of the routine. This is
usually the creating user, although the database owner could be the creator as well.
For information about dener's and invoker's rights, see CREATE PROCEDURE on page 446 or CREATE
FUNCTION on page 440.
Syntax
SESSION_USER
Example
VALUES SESSION_USER
SIGN function
The SIGN function returns the sign of the specied number.
The specied number is the number you want the sign of. The specied number must be a DOUBLE PRECISION
on page 578 number.
The data type of the returned value is INTEGER on page 579.
If the specied number is NULL, the result of this function is NULL.
If the specied number is zero (0), the result of this function is zero (0).
If the specied number is greater than zero (0), the result of this function is plus one (+1).
If the specied number is less than zero (0), the result of this function is minus one (-1).
Syntax
SIGN ( number )
SIN function
The SIN function returns the sine of a specied number.
The specied number is the angle, in radians, that you want the sine for. The specied number must be a DOUBLE
PRECISION on page 578 number.
If the specied number is NULL, the result of this function is NULL.
If the specied number is zero (0), the result of this function is zero.
vFabric SQLFire User's Guide536
vFabric SQLFire Reference