由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - oracle help?
相关主题
Oracle 求助菜鸟请教一个关于oracle里日期的问题
database triggersORACLE error code 04031
请帮忙在PL/SQL里面执行下面的计算,一个笔记软件破解用的苦逼的Oracle学员面试回忆录和录音,绝对真实!供想入行Oracle的博士们参考
SQL问题(有包子)Need help with an oracle SQL expression
一道题 PL/SQL请问如何算出这个天数来
SQL, recruiter发过来的面试题 (转载)urgent: how to compare two dates in SQL?
Error Code 01034?how to include record deleted date into trigger?
Oracle新手请教一个问题Question about the err when export table
相关话题的讨论汇总
话题: oracle话题: epoch话题: yyyy话题: function话题: dd
进入Database版参与讨论
1 (共1页)
b****e
发帖数: 1275
1
is there an oracle function that does what the perl localtime does?
ie. translate the epoch date (long int) to a date string like mm/dd/yyyy?
thanks
s*k
发帖数: 144
2

SELECT TO_CHAR(SYSDATE,'DD/MON/YYYY') FROM sys.dual;
hope that works

【在 b****e 的大作中提到】
: is there an oracle function that does what the perl localtime does?
: ie. translate the epoch date (long int) to a date string like mm/dd/yyyy?
: thanks

b****e
发帖数: 1275
3
no no no.. i am not asking for that.. i need a function that
translates epoch time (sec from jan 1 1970) to MMDDYYYY kind
of format. to_char doesn't work
thanks

【在 s*k 的大作中提到】
:
: SELECT TO_CHAR(SYSDATE,'DD/MON/YYYY') FROM sys.dual;
: hope that works

s*k
发帖数: 144
4
As far as I know, there is no built-in function
for Oracle8 to support your convertion though
the time stored in oracle is also a special kind
of integer.
So could you explain your scenario a little more so that
we may find a way to walk around your problem?

【在 b****e 的大作中提到】
: no no no.. i am not asking for that.. i need a function that
: translates epoch time (sec from jan 1 1970) to MMDDYYYY kind
: of format. to_char doesn't work
: thanks

1 (共1页)
进入Database版参与讨论
相关主题
Question about the err when export table一道题 PL/SQL
怎么写这个query呢?SQL, recruiter发过来的面试题 (转载)
SQL Server - convert datetime to a string YY-MM-DD HH Error Code 01034?
Oracle8概 述Oracle新手请教一个问题
Oracle 求助菜鸟请教一个关于oracle里日期的问题
database triggersORACLE error code 04031
请帮忙在PL/SQL里面执行下面的计算,一个笔记软件破解用的苦逼的Oracle学员面试回忆录和录音,绝对真实!供想入行Oracle的博士们参考
SQL问题(有包子)Need help with an oracle SQL expression
相关话题的讨论汇总
话题: oracle话题: epoch话题: yyyy话题: function话题: dd