• 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_YMINTERVAL function in oracle database query

TO_YMInterval Function in Oracle SQL – PLSQL

November 27, 2012 by techhoneyadmin

The TO_YMInterval function in Oracle SQL / PLSQL is used to convert a string value to Interval Year to Month type.

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

SELECT TO_YMInterval(character_1)
FROM table_name;

character_1 can be CHAR, VARCHAR2, NCHAR OR NVARCHAR2 data type, it is the value that will be converted to Interval Year to Month.

Examples:

SELECT TO_YMINTERVAL('5-11')
FROM dual;

Would return 5 years and 11 months as Year to Month Interval type


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

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