|
|
FULL A - Z Oracle Function Library (formerly named "Morgan's Library")
Term: INTERVAL
Definition: INTERVAL '5-3' YEAR TO MONTH Note that INTERVALs can be either positive or negative, and they can be added or subtracted from the various TIMESTAMP datatypes. After addition or subraction they return the result as a TIMESTAMP. The following syntax example uses EXTRACT to split out a specific part of an INTERVAL: EXTRACT(time_part FROM interval_expr) Example Syntax: INTERVAL YEAR[PRECISION] TO MONTH; INTERVAL DAY [PRECISION] TO SECOND[PRECISION]; Example Usage: SELECT INTERVAL '50' MONTH RES SELECT INTERVAL '4' YEAR RES SELECT INTERVAL '3 12:30:06.7' DAY TO SECOND(1) RES Related Links:
Related Code Snippets:
|
Home | Search | Code Library | Sponsors | Privacy | Terms of Use | Contact Us | © 2003 - 2024 psoug.org |