【问题标题】:Can someone help in converting this SQL Server "update statement" to Oracle有人可以帮助将此 SQL Server“更新语句”转换为 Oracle
【发布时间】:2019-10-11 15:01:56
【问题描述】:
update a
set a.col1 = 1, 
    a.col2 = 'abc' + CAST(b.colID AS VARCHAR(3))
from #abc a
cross apply 
    (select top 1 x.col3, x.colID1
     from #xyz x
     where (x.col3 = a.col3 and 
            x.colID1 IN (0, 9, 8))) b

表 abc 和 xyz 是临时表,这就是“#”的原因。 需要把上面的脚本转成Oracle

【问题讨论】:

  • 您尝试了什么,什么没有奏效?

标签: sql-server oracle tsql sql-server-2008 plsql


【解决方案1】:

以下链接可以帮助您实现您想要的目标... https://oracle-base.com/articles/18c/private-temporary-tables-18c

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-10-05
    • 1970-01-01
    • 2023-04-09
    相关资源
    最近更新 更多