• Skip to primary navigation
  • Skip to main content

Tech Honey

The #1 Website for Oracle PL/SQL, OA Framework and HTML

  • Home
  • HTML
    • Tags in HTML
    • HTML Attributes
  • OA Framework
    • Item in OAF
    • Regions in OAF
    • General OAF Topics
  • Oracle
    • statement
    • function
    • clause
    • plsql
    • sql

syntax and example of TO_DSINTERVAL function in oracle sql

TO_DSInterval Function in Oracle SQL – PLSQL

November 27, 2012 by techhoneyadmin

The TO_DSInterval function in Oracle SQL / PLSQL is used to convert a string value to Interval Day to Second type.

Syntax for the TO_DSInterval function in Oracle SQL / PLSQL is:

SELECT TO_DSInterval(character_1 [nls_parameter])
FROM table_name;

  • character_1 can be CHAR, VARCHAR2, NCHAR or NVARCHAR2 data type, it is the value that will be converted to Interval Day to Second.
  • nls_paramter is a decimal character and group separator value.

Examples:

SELECT TO_DSINTERVAL('50 10:30:00')
FROM dual;

Would return ‘+50 10:30:00.000000’


Filed Under: function Tagged With: how to use TO_DSINTERVAL function in oracle database query, how to use TO_DSINTERVAL function in oracle plsql, how to use TO_DSINTERVAL function in oracle sql, syntax and example of TO_DSINTERVAL function in oracle database query, syntax and example of TO_DSINTERVAL function in oracle plsql, syntax and example of TO_DSINTERVAL function in oracle sql, TODSIntervalPLSQL, TO_DSINTERVAL function in oracle plsql, TO_DSINTERVAL function in oracle sql, using TO_DSINTERVAL function in oracle database query, using TO_DSINTERVAL function in oracle plsql, using TO_DSINTERVAL function in oracle sql

Copyright © 2025 · Parallax Pro on Genesis Framework · WordPress · Log in