i want to update the table child by looking up table parent
(basically I want to update P_id of child by replacing it with P_id of parent comparing the name (as a parameter in both tables.)
Is this command correct?
UPDATE child FROM parent
P_id= 45
where name = data0878
I amnot sure whether this is correct
what should i try?
In the example i have pasted in table child , when name = data0878 the pid is same as in the parent but i want to check whether the P_id for a particular name remains the same as parent.