我有“城市”和“汽车”表,我有以下查询: Set status='good', Where person_id=789
问题是,当country或city_id不是null时,我仍然得到status=' good‘,所以我想对status使用相同的条件(city_id为null,country为null),但我在条件语句中不够好。
ON product_product.id = product_template.id 据我理解,第1行指定要更新的表然后,我指定要使用2个数字列更新名为list_price的列,该列位于product_template中。我指定了第二个表,它有一个数值为我所需的列,以便从将要更新的表中更新我的列。我指定要更新的表的内部联接,以