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 中将字符串日期转换为日期时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  ibtmp1是非压缩的innodb临时表的独立表空间,通过innodb_temp_data_file_path参数指定文件的路径,文件名和大小,默认配置为ibtmp1:12M:autoextend,也就是说在文件系统磁盘足够的情况下,这个文件大小是可以无限增长的。 为了避免ibtmp1文件无止境的暴涨导致
                  SQL query to group by day(按天分组的 SQL 查询)
                  What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)
                  MySQL groupwise MAX() returns unexpected results(MySQL groupwise MAX() 返回意外结果)
                  MySQL SELECT most frequent by group(MySQL SELECT 按组最频繁)
                  Include missing months in Group By query(在 Group By 查询中包含缺失的月份)
                  • <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>