Mysql
 sql >> Database >  >> RDS >> Mysql

Come aggiornare da selezionare con un join

UPDATE invoiceLine
    INNER JOIN terminal
        ON invoiceLine.ctn = terminal.ctn
    INNER JOIN network
        ON terminal.network = network.id
    SET invoiceLine.network = network.label