This commit is contained in:
parent
9154507b72
commit
c991f32f5a
|
@ -10,7 +10,7 @@ CREATE OR REPLACE TEMPORARY TABLE tmp.tTicketVolume
|
|||
GROUP BY t.id;
|
||||
|
||||
UPDATE vn.ticket t
|
||||
JOIN tTicketVolume tv ON tv.id = t.id
|
||||
JOIN tmp.tTicketVolume tv ON tv.id = t.id
|
||||
SET t.volume = tv.volume;
|
||||
|
||||
DROP TEMPORARY TABLE tmp.tTicketVolume;
|
||||
|
|
Loading…
Reference in New Issue