Sybase 查询的 Oracle 等效项
update Asset_Table
set P.Asset = L.Asset ,
P.Update_By = 'BATCH_JOB' ,
P.Update_Ts = datediff(ss,'01/01/1970',getdate()),
P.Machine_Name = 'PENTA'
from Asset_table P , RateDB..User_Asset L
where P.User_Id =L.User_Id
and L.process_status = 'WIP'
and upd_ins_del_flag = 'U' and process_pid = 2
上面是一个sybase查询。任何人都可以帮助我在Oracle中相当于这个查询吗?
update Asset_Table
set P.Asset = L.Asset ,
P.Update_By = 'BATCH_JOB' ,
P.Update_Ts = datediff(ss,'01/01/1970',getdate()),
P.Machine_Name = 'PENTA'
from Asset_table P , RateDB..User_Asset L
where P.User_Id =L.User_Id
and L.process_status = 'WIP'
and upd_ins_del_flag = 'U' and process_pid = 2
The above is a sybase query.Can anyone help me the equivalent of this query in Oracle.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
唯一(显然)不同的是 Unix 时间戳的计算:
id 相当于 Oracle
但 Oracle 不会对名为“RateDB..User_Asset”的表太满意
The only thing that's (obviously) different is the calculation of the Unix timestamp:
id the Oracle equivalent of
But Oracle won't be too happy with a table called "RateDB..User_Asset"