SET 后面为什么不能用别名.列名?
UPDATE tgb_goods AS g INNER JOIN tgb_brand AS b ON g.tgb_goods_brand=b.tgb_brand_name SET tgb_goods_brand=tgb_brand_id这样就可以为什么 set 后面变成g.tgb_goods_brand=t.tgb_brand_id就会报错呢?
UPDATE tgb_goods AS g INNER JOIN tgb_brand AS b ON g.tgb_goods_brand=b.tgb_brand_name SET tgb_goods_brand=tgb_brand_id这样就可以为什么 set 后面变成g.tgb_goods_brand=t.tgb_brand_id就会报错呢?
2018-08-01
举报