MySQL supports IF statement. UPDATE abbonamento SET punti = IF(tipo = 'punti', punti - 1, punti), bonus = IF(tipo <> 'punti', bonus - 1, ...
確定! 回上一頁