name sex memo
------------------------
smith M 123
stifen W abc
john M ***
nike M ***用update语句,如何使所有sex 为 'M' 的 memo列更新为 123(即smith列的数据)
------------------------
smith M 123
stifen W abc
john M ***
nike M ***用update语句,如何使所有sex 为 'M' 的 memo列更新为 123(即smith列的数据)
where sex='M'
where sex='M' and name<>'smith'
后面的and name<>'smith'可以不用要,因为更新后都一样了。-_-