6 lines
247 B
MySQL
6 lines
247 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);
|