Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
Code:
update b
set b.price=a.price
from srcTable as a
inner join trgTable as b
on a.id=b.id
This will do what you want to, but directly in SQL. No need of PHP for that.
Of course, you'll need to adapt the query to your schema structure.
__________________
Only a biker knows why a dog sticks his head out the window.
|