1. <legend id='iZr40'><style id='iZr40'><dir id='iZr40'><q id='iZr40'></q></dir></style></legend>

      • <bdo id='iZr40'></bdo><ul id='iZr40'></ul>
      <i id='iZr40'><tr id='iZr40'><dt id='iZr40'><q id='iZr40'><span id='iZr40'><b id='iZr40'><form id='iZr40'><ins id='iZr40'></ins><ul id='iZr40'></ul><sub id='iZr40'></sub></form><legend id='iZr40'></legend><bdo id='iZr40'><pre id='iZr40'><center id='iZr40'></center></pre></bdo></b><th id='iZr40'></th></span></q></dt></tr></i><div id='iZr40'><tfoot id='iZr40'></tfoot><dl id='iZr40'><fieldset id='iZr40'></fieldset></dl></div>

      1. <tfoot id='iZr40'></tfoot>

        <small id='iZr40'></small><noframes id='iZr40'>

        在 Oracle 中将字符串日期转换为日期时间

        Convert a string date into datetime in Oracle(在 Oracle 中将字符串日期转换为日期时间)
      2. <tfoot id='loxBF'></tfoot>
      3. <i id='loxBF'><tr id='loxBF'><dt id='loxBF'><q id='loxBF'><span id='loxBF'><b id='loxBF'><form id='loxBF'><ins id='loxBF'></ins><ul id='loxBF'></ul><sub id='loxBF'></sub></form><legend id='loxBF'></legend><bdo id='loxBF'><pre id='loxBF'><center id='loxBF'></center></pre></bdo></b><th id='loxBF'></th></span></q></dt></tr></i><div id='loxBF'><tfoot id='loxBF'></tfoot><dl id='loxBF'><fieldset id='loxBF'></fieldset></dl></div>

      4. <small id='loxBF'></small><noframes id='loxBF'>

            <legend id='loxBF'><style id='loxBF'><dir id='loxBF'><q id='loxBF'></q></dir></style></legend>
              • <bdo id='loxBF'></bdo><ul id='loxBF'></ul>
                  <tbody id='loxBF'></tbody>
                • 本文介绍了在 Oracle 中将字符串日期转换为日期时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何在 oracle 中将此字符串日期转换为日期时间.

                  How can I convert this string date to datetime in oracle.

                  2011-07-28T23:54:14Z
                  

                  使用此代码会引发错误:

                  Using this code throws an error:

                  TO_DATE('2011-07-28T23:54:14Z',  'YYYY-MM-DD HH24:MI:SS')
                  

                  如何做到这一点?

                  Error report:
                  SQL Error: ORA-01861: literal does not match format string
                  01861. 00000 -  "literal does not match format string"
                  *Cause:    Literals in the input must be the same length as literals in
                             the format string (with the exception of leading whitespace).  If the
                             "FX" modifier has been toggled on, the literal must match exactly,
                             with no extra whitespace.
                  *Action:   Correct the format string to match the literal.
                  

                  更新:-

                  TO_DATE('2011-07-28T23:54:14Z', 'YYYY-MM-DD"T"HH24:MI:SS"Z"')

                  TO_DATE('2011-07-28T23:54:14Z', 'YYYY-MM-DD"T"HH24:MI:SS"Z"')

                  我只在列中看到日期而不是时间

                  I only see the date not time in the column

                  28-JUL-11
                  

                  推荐答案

                  试试这个:TO_DATE('2011-07-28T23:54:14Z', 'YYYY-MM-DD"T"HH24:MI:SS"Z"')

                  这篇关于在 Oracle 中将字符串日期转换为日期时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Oracle PL/SQL - Raise User-Defined Exception With Custom SQLERRM(Oracle PL/SQL - 使用自定义 SQLERRM 引发用户定义的异常)
                  Oracle: is there a tool to trace queries, like Profiler for sql server?(Oracle:是否有跟踪查询的工具,例如用于 sql server 的 Profiler?)
                  SELECT INTO using Oracle(使用 Oracle SELECT INTO)
                  How to handle Day Light Saving in Oracle database(如何在 Oracle 数据库中处理夏令时)
                  PL/SQL - Use quot;Listquot; Variable in Where In Clause(PL/SQL - 使用“列表Where In 子句中的变量)
                  Oracle: Import CSV file(Oracle:导入 CSV 文件)
                  • <i id='fwBRA'><tr id='fwBRA'><dt id='fwBRA'><q id='fwBRA'><span id='fwBRA'><b id='fwBRA'><form id='fwBRA'><ins id='fwBRA'></ins><ul id='fwBRA'></ul><sub id='fwBRA'></sub></form><legend id='fwBRA'></legend><bdo id='fwBRA'><pre id='fwBRA'><center id='fwBRA'></center></pre></bdo></b><th id='fwBRA'></th></span></q></dt></tr></i><div id='fwBRA'><tfoot id='fwBRA'></tfoot><dl id='fwBRA'><fieldset id='fwBRA'></fieldset></dl></div>
                    <tfoot id='fwBRA'></tfoot>

                        <legend id='fwBRA'><style id='fwBRA'><dir id='fwBRA'><q id='fwBRA'></q></dir></style></legend>
                            <tbody id='fwBRA'></tbody>

                          <small id='fwBRA'></small><noframes id='fwBRA'>

                            <bdo id='fwBRA'></bdo><ul id='fwBRA'></ul>