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

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

      1. <legend id='P1bun'><style id='P1bun'><dir id='P1bun'><q id='P1bun'></q></dir></style></legend>
      2. <small id='P1bun'></small><noframes id='P1bun'>

        oracle中CURRENT_TIMESTAMP和SYSDATE不同

        时间:2023-09-19

        <small id='9r14X'></small><noframes id='9r14X'>

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

            • <bdo id='9r14X'></bdo><ul id='9r14X'></ul>
                • <legend id='9r14X'><style id='9r14X'><dir id='9r14X'><q id='9r14X'></q></dir></style></legend><tfoot id='9r14X'></tfoot>
                  本文介绍了oracle中CURRENT_TIMESTAMP和SYSDATE不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在 oracle 10g 中执行此 SQL 后:

                  After executing this SQL in oracle 10g:

                  SELECT SYSDATE, CURRENT_TIMESTAMP  FROM DUAL
                  

                  我收到这个奇怪的输出:

                  I receive this strange output:

                  时间差的原因是什么?服务器时间等于 SYSDATE 值

                  What is cause of the difference in time? The server time is equal of SYSDATE value

                  推荐答案

                  CURRENT_DATECURRENT_TIMESTAMP 返回会话时区中的当前日期和时间.

                  CURRENT_DATE and CURRENT_TIMESTAMP return the current date and time in the session time zone.

                  SYSDATESYSTIMESTAMP 返回系统日期和时间 - 即数据库所在的系统.

                  SYSDATE and SYSTIMESTAMP return the system date and time - that is, of the system on which the database resides.

                  如果您的客户端会话与数据库所在的服务器不在同一个时区(或者说它不是,通过您的 NLS 设置),混合 SYS*CURRENT_* 函数将返回不同的值.他们都是对的,他们只是代表不同的东西.看起来您的服务器处于(或认为是)+4:00 时区,而您的客户端会话处于 +4:30 时区.

                  If your client session isn't in the same timezone as the server the database is on (or says it isn't anyway, via your NLS settings), mixing the SYS* and CURRENT_* functions will return different values. They are all correct, they just represent different things. It looks like your server is (or thinks it is) in a +4:00 timezone, while your client session is in a +4:30 timezone.

                  如果时钟不同步,您可能还会看到时间上的微小差异,这在这里似乎不是问题.

                  You might also see small differences in the time if the clocks aren't synchronised, which doesn't seem to be an issue here.

                  这篇关于oracle中CURRENT_TIMESTAMP和SYSDATE不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:TNS-12505:TNS:listener 当前不知道连接描述符中给出的 SID 下一篇:“安全"TO_NUMBER()

                  相关文章

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

                    <small id='5gMCK'></small><noframes id='5gMCK'>

                  1. <tfoot id='5gMCK'></tfoot>

                    <legend id='5gMCK'><style id='5gMCK'><dir id='5gMCK'><q id='5gMCK'></q></dir></style></legend>