Du behöver en UPDATE
(inte INSERT
):UPPDATERA DOKUMENT
UPDATE spot_table ST
INNER JOIN tag_mapping_spot_table c ON c.spot_id = ST.spot_id
INNER JOIN def_table b ON b.tag_id = c.tag_id
SET ST.spot_name = b.tag_ja
Du behöver en UPDATE
(inte INSERT
):UPPDATERA DOKUMENT
UPDATE spot_table ST
INNER JOIN tag_mapping_spot_table c ON c.spot_id = ST.spot_id
INNER JOIN def_table b ON b.tag_id = c.tag_id
SET ST.spot_name = b.tag_ja