我有两个表...
table1(id,item,price)的值为:
id | item | price
-------------
10 | book | 20
20 | copy | 30
30 | pen | 10
....table2 ( id, item, price) values:
(id,item,price)的值:id | item | price
-------------
10 | book | 20
20 | book | 30
现在我想要:
update table1
set table1.Price = table2.price
where table1.id = table2.id
and table1.item = table2.item.
我该如何做?