SELECT查詢我有兩個表:INSERT ...在MySQL
`user1`
- full_name
- headline # this is empty
`user2`
- full_name
- headline # this has content
我想從user2
表中插入headline
到user1
表。這是我到目前爲止有:
insert into user1 set headline = (select headline from user2 where headline=headline)
不過,我得到一個錯誤信息,從該說的select返回多行。我將如何正確地發出這個插入語句?
非常好,謝謝您! – David542 2012-07-22 11:19:31