由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - I'm waiting for your oracle
相关主题
Oracle 求助SQL Server - convert datetime to a string YY-MM-DD HH
Help!--How to transfer string to Date(mm-dd-yyyy hh24:mi:ss) in Access?oracle help?
ORACLE error code 04031database triggers
A wield thing in Oracle DBhelp! A bug about date type !
求帮忙recover deleted rows in oracleembedded sql 问题
SQL问题(有包子)日期格式初级问题
date format转换问题请教Help on SQL statement
Oracle date format紧急请教SQL tuning高手一个问题
相关话题的讨论汇总
话题: date话题: oracle话题: 10话题: waiting话题: your
进入Database版参与讨论
1 (共1页)
s****n
发帖数: 7
1
I appreciate your kind answers.
my question is :
can I change a DATE type(eg. 1999/10/10 10:15:00) to total seconds from 1970/1/1,
like time() function in UNIX ? In fact,I want to calculate date in Pro*c.
when I get many records where the date is in DATE type shown above,how can I
calculate the time difference between two records? And what's more,how can I
add a duration(eg. 10 minutes) onto a date and write it back?
B*****n
发帖数: 135
2
select old_date+(1/24/60)*10 from dual;
the above sql will add 10 minutes to 'old_date'. For instance:
SQL> select to_char(sysdate, 'MM-DD-YYYY HH24:MI:SS') "current time" from dual;
current time
1 (共1页)
进入Database版参与讨论
相关主题
紧急请教SQL tuning高手一个问题求帮忙recover deleted rows in oracle
A question of filling in missing value in SQLSQL问题(有包子)
问个关于openquery的问题date format转换问题请教
请帮忙在PL/SQL里面执行下面的计算,一个笔记软件破解用的Oracle date format
Oracle 求助SQL Server - convert datetime to a string YY-MM-DD HH
Help!--How to transfer string to Date(mm-dd-yyyy hh24:mi:ss) in Access?oracle help?
ORACLE error code 04031database triggers
A wield thing in Oracle DBhelp! A bug about date type !
相关话题的讨论汇总
话题: date话题: oracle话题: 10话题: waiting话题: your