Query execution was interrupted, error #1317

后端 未结 3 1599
猫巷女王i
猫巷女王i 2020-12-16 15:40

What I have is a table with a bunch of products (books, in this case). My point-of-sale system generates me a report that has the ISBN (unique product number) and perpetual

3条回答
  •  生来不讨喜
    2020-12-16 16:20

    try to use INNER JOIN in the two tables like that

           UPDATE `inventory` 
           INNER JOIN `sales` 
           ON  `inventory`.`isbn` = `sales`.`isbn`
           SET `inventory`.`numbersold` = `sales`.`numbersold` 
    

提交回复
热议问题