Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

Como atualizar do select com um Join

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