5 lines
239 B
MySQL
5 lines
239 B
MySQL
|
UPDATE IGNORE vn.client c
|
||
|
JOIN vn.country co ON co.id = c.countryFk
|
||
|
SET c.fi = MID(REPLACE(c.fi, ' ', ''), 3, LENGTH(REPLACE(c.fi, ' ', '')) - 1)
|
||
|
WHERE c.isVies = TRUE
|
||
|
AND co.code = LEFT(REPLACE(c.fi, ' ', ''), 2);
|