Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/oracle/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 是否有人可以帮助转换此SQL Server“;更新声明;神谕_Sql Server_Oracle_Tsql_Sql Server 2008_Plsql - Fatal编程技术网

Sql server 是否有人可以帮助转换此SQL Server“;更新声明;神谕

Sql server 是否有人可以帮助转换此SQL Server“;更新声明;神谕,sql-server,oracle,tsql,sql-server-2008,plsql,Sql Server,Oracle,Tsql,Sql Server 2008,Plsql,表abc和xyz是临时表,这就是为什么“#”是临时表。 需要将上面的脚本转换为Oracle下面的链接可以帮助您实现您想要的。。。 您尝试了哪些,哪些不起作用? 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

表abc和xyz是临时表,这就是为什么“#”是临时表。
需要将上面的脚本转换为Oracle

下面的链接可以帮助您实现您想要的。。。

您尝试了哪些,哪些不起作用?
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