我想运行这个查询:
UPDATE up SET up.pts = uc.checkin_worth WHERE uc.email = up.email AND uc.company_id = up.company_id AND uc.email = 'test@gmail.com' AND uc.company_id = '4' AND uc.qrcode = 'j'
但是,我收到一个错误,因为我不知道如何在 UPDATE 查询中组合两个表(uc 和 up)。
谁能帮我解决这个问题?
谢谢,