This Oracle tutorial explains how to use the Oracle/PLSQL TO_DSINTERVAL function with syntax and examples.
The Oracle/PLSQL TO_DSINTERVAL function converts a string to an INTERVAL DAY TO SECOND type.
The syntax for the TO_DSINTERVAL function in Oracle/PLSQL is:
The value to convert to an INTERVAL DAY TO SECOND type. It can be a char, varchar2, nchar, or nvarchar2 value.
Optional. A decimal character and group separator value.
The TO_DSINTERVAL function returns a INTERVAL DAY TO SECOND value.
The TO_DSINTERVAL function can be used in the following versions of Oracle/PLSQL:
Let's look at some Oracle TO_DSINTERVAL function examples and explore how to use the TO_DSINTERVAL function in Oracle/PLSQL.
For example: