Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Database/JDBC/SQL/JDO/Hibernate » Oracle  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 大家可以帮帮我吗?我快跳楼了 (oracle中有没有求时间毫秒的函数)
zoo8096



发贴: 0
积分: 0
于 2004-02-05 10:39 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
oracle中有没有求时间毫秒的函数,例如

把这就mysql的语句转化成oracle可以识别的语句

SQL = "select countStart as friendonlie from user,friend where friend.UID=" + strUserID + " and user.ID=friend.FID and (UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(user.logintime))<=180"

主要是这里的转换
(UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(user.logintime))<=180


why edited on 2004-03-13 22:13

作者 Re:大家可以帮帮我吗?我快跳楼了 [Re:zoo8096]
zoo8096



发贴: 0
积分: 0
于 2004-02-05 11:13 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
谢谢大家~~我找解决的办法了~~不用大家费心了


作者 Re:大家可以帮帮我吗?我快跳楼了 [Re:zoo8096]
lslzf



发贴: 0
积分: 0
于 2004-02-05 21:58 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
说出来大家都共享一下阿


作者 Re:大家可以帮帮我吗?我快跳楼了 [Re:zoo8096]
findok



发贴: 0
积分: 0
于 2004-02-10 22:10 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
你知道啦,既然知道了,就说来听听,不会是跳楼中得到的启发吧,哈哈(玩笑)!



作者 Re:大家可以帮帮我吗?我快跳楼了 [Re:zoo8096]
sportman



发贴: 0
积分: 0
于 2004-02-25 03:13 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
It seems that he just want get help rather than share ideas
Smile



作者 Re:大家可以帮帮我吗?我快跳楼了 [Re:zoo8096]
sagac



发贴: 0
积分: 0
于 2004-03-10 22:27 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
有啊,不过好象你题目上用的是unix自带的函数,你查一下oracle document
,她有自己的一套求时间的函数,从日期到微秒都有的。




flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923