Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-35972

Oracle: Function TO_DSINTERVAL()

    XMLWordPrintable

Details

    Description

      TO_DSINTERVAL converts its argument to a value of the INTERVAL DAY TO SECOND data type.

      The grammar and syntax rules:

      TO_DSINTERVAL <left paren> <expr> [ DEFAULT <expr> ON CONVERSION ERROR ] <right paren>
      

      • Both <expr> instances should evaluate to a character string data type (CHAR,VARCHAR,TEXT) with a value matching <ds format>.
      • The optional DEFAULT clause allows to specify the value returned in case if an error happens while converting the argument.

      <ds format> := <ds format sql> | <ds format iso>
        
      <ds format sql> := <sign> <days> <space> <hours> : <minutes> : <seconds> [. frac_seconds ]
       
      <ds format iso> := [<minus sign>] P [<days> D] [T [<hours> H] [<minutes> M] [<seconds> [<period> <frac seconds>] S ] ]
       
      <days>         := <unsigned integer>
      <hours>        := <unsigned integer>
      <minutes>      := <unsigned integer>
      <seconds>      := <unsigned integer>
      <frac seconds> := <unsigned integer>
      

      Examples

      TODO

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.