This Oracle tutorial explains how to use the Oracle/PLSQL SYSTIMESTAMP function with syntax and examples.
The Oracle/PLSQL SYSTIMESTAMP function returns the current system date and time (including fractional seconds and time zone) on your local database.
The syntax for the SYSTIMESTAMP function in Oracle/PLSQL is:
There are no parameters or arguments for the SYSTIMESTAMP function.
The SYSTIMESTAMP function returns a TIMESTAMP WITH TIME ZONE value.
The SYSTIMESTAMP function can be used in the following versions of Oracle/PLSQL:
Let's look at some Oracle SYSTIMESTAMP function examples and explore how to use the SYSTIMESTAMP function in Oracle/PLSQL.
For example:
The variable called v_time will now contain the date and time (including fractional seconds and time zone) at the moment the command is executed.
The SYSTIMESTAMP function might return a value like this:
You can also choose to use the TO_CHAR function with the SYSTIMESTAMP function.
For example:
The function above may return a value such as:
You could also use the SYSTIMESTAMP function in any SQL statement.
For example: