UPDATE `goods` SET `a`=b WHERE id =1;
表 goods 字段a 的值赋值到字段b
UPDATE `goods` as a, `goods` as b SET a.`marketprice`=b.costprice,a.`costprice`=b.marketprice WHERE a.id = b.id and id=1;
表 goods 字段marketprice 赋值到costprice 字段costprice 赋值marketprice (两个字段互调值)