JPCogAdmin
Programmer
Good morning,
I'm trying to update one field in a specific user schema by using another user's schema fields and I get an error:
=> SQL Error: ORA-00904: invalid identifier
The SQL code I'm running is as follow:
===============================================
update user1.table1 P set (phone) = (select user2.table2.phone from user2.table2 af
where P.ID = af.ID AND P.addr=af.addr)
===============================================
As you can see my goal is to update table1's phone number
with the phone number from table2 which is owned by a different schema. Any clarification is greatly appreciated.
-J
I'm trying to update one field in a specific user schema by using another user's schema fields and I get an error:
=> SQL Error: ORA-00904: invalid identifier
The SQL code I'm running is as follow:
===============================================
update user1.table1 P set (phone) = (select user2.table2.phone from user2.table2 af
where P.ID = af.ID AND P.addr=af.addr)
===============================================
As you can see my goal is to update table1's phone number
with the phone number from table2 which is owned by a different schema. Any clarification is greatly appreciated.
-J