12.2. CURRENT_DATE
Current server date in the session time zone
TypeDATE
Syntax
|
CURRENT_DATE
Within a PSQL module (procedure, trigger or executable block), the value of CURRENT_DATE
will remain constant every time it is read.
If multiple modules call or trigger each other, the value will remain constant throughout the duration of the outermost module.
If you need a progressing value in PSQL (e.g. to measure time intervals), use Section 12.20, “'TODAY'
”.
Examples
|
select current_date from rdb$database
|-- returns e.g. 2011-10-03