Functions Returning System Variables

SYSDATE

Syntax

SYSDATE

Description

The SYSDATE function returns the current date and time. It has no arguments.

NOTE. The function is available to use only on working with Oracle DBMS.

Example

BIRTHDATE <= SYSDATE

The value of the BIRTHDATE field cannot be more than the current date.

USERENV

Syntax

USERENV('Option')

Description

The USERENV function returns a value containing information on the current session based on the Option parameter. The Option parameter may take the following values:

NOTE. The function is available to use only on working with Oracle DBMS.

Example

USER_LNG = USERENV('LANG')

The USER_LNG field (type String) may contain only the language of the current session.

See also:

Built-in SQL Functions | Table Constraints