#6813 fix creditClient #2026
|
@ -8,10 +8,10 @@ BEGIN
|
|||
END;
|
||||
|
||||
START TRANSACTION;
|
||||
UPDATE vn.`client` c
|
||||
UPDATE vn.client c
|
||||
JOIN vn.payMethod pm ON pm.id = c.payMethodFk
|
||||
jorgep marked this conversation as resolved
|
||||
SET credit = 0
|
||||
WHERE pm.`code` = 'card';
|
||||
WHERE pm.code = 'card';
|
||||
|
||||
DROP TEMPORARY TABLE IF EXISTS clientes_credit;
|
||||
CREATE TEMPORARY TABLE clientes_credit
|
||||
|
|
Loading…
Reference in New Issue
Esta linea y la 14 es formateo, correcto?
Según el experto en base de datos @pablone, el set es más importante que el join.