如何获得现在的时间和日期? [英] how to get present time and date?
问题描述
任何人都可以发送查询来获取当前的日期和时间吗?我使用了dateformat方法,但我没有得到它。请对我非常紧急.. 。
谢谢
Hi,
Can anyone send a query to get present date and time ??I used dateformat method ,but i am not getting that.please its very urgent to me...
Thank You
推荐答案
任何人都可以发送查询来获取当前的日期和时间吗?我使用了dateformat方法,但我没有得到它。请对我非常紧急...
谢谢
Hi,
Can anyone send a query to get present date and time ??I used dateformat method ,but i am not getting that.please its very urgent to me...
Thank You
你好亲爱的,
选择TO_CHAR(new_time(sysdate,''GMT '',''PST''),''DD-MON-YYYY HH:MI:SS'')来自DUAL;
你试试以上...这解决了你的问题。
Bhanu Murthy
Hello My dear,
select TO_CHAR(new_time(sysdate,''GMT'',''PST''), ''DD-MON-YYYY HH:MI:SS'') FROM DUAL;
You try the above... this solves your problem.
Bhanu Murthy
hai尝试此查询
现在选择(),SLEEP(2),现在();
hai尝试此查询
SELECT NOW(),SLEEP(2),NOW();
hai try this query
SELECT NOW(), SLEEP(2), NOW();
抱歉,这不起作用。 ...我很害怕,你使用哪个ORACLE版本。 ..可能是您正在使用最新版本...我仍在使用oracle 8.0.3.0。
Sorry, This does not work. ... I am afraid, which ORACLE version r u using. .. May be you are using latest version... I am still using oracle 8.0.3.0.
这篇关于如何获得现在的时间和日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!