Re: mass update tool
If I am correct, you are looking for joins in update statement. This is how you will like to say...
UPDATE a SET a.y TO b.a WHERE a.primary_key = b.primary_key
Untested examples...
UPDATE products_categories AS pc
INNER JOIN products AS p ON pc.prod_id = p.id
SET pc.prod_sequential_id = p.sequential_id
UPDATE users, Members
SET
users.PASSWORD = Members.Password,
users.PassQuestion = Members.PassQuestion,
users.PassAnswer = Members.PassAnswer,
users.LastUpdated = Members.LastUpdated,
users.Active = Members.Active,
users.ActiveCode = Members.ActiveCode
WHERE users.user_name = members.username
Subject
Written By
Posted
Re: mass update tool
May 04, 2005 09:15PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.