Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 update with inner join in oracle

Author  Topic 

nkshirsa
Starting Member

2 Posts

Posted - 2011-04-13 : 04:57:52
This is my working query in ms access...

UPDATE Caxnode AS A INNER JOIN Caxnode AS B ON A.node_alias = B.node_alias SET A.partition_Type = 'LDOM', A.node_mode = 'LOGICAL', A.host_id = b.host_id, A.num_of_proc = b.num_of_proc WHERE (((A.node_mode)='virtual' Or (A.node_mode)='regular') AND ((B.partition_Type)='LDOM'));



This doesn't work in oracle, I googled and read that update doesnt work with inner join in oracle..

can someone please help me translate this query to work on oracle?

Thanks!
-nikhil.

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2011-04-13 : 05:08:45
try posting over at a Oracle forum like dbforums.com. This is a SQL Server forum.


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

mmarovic
Aged Yak Warrior

518 Posts

Posted - 2011-04-13 : 11:09:52
There is a special syntax for that in oracle, with restrictions you need to be aware about. See: http://stackoverflow.com/questions/230196/using-a-subquery-instead-of-a-table-name-in-an-oracle-update-statement


Mirko

My blog: http://mirko-marovic-eng.blogspot.com/
Go to Top of Page
   

- Advertisement -