mysql Ver 14.14
UPDATE
m2url
SET
m2url.`entity_type` = 'product',
m2url.`entity_id` = m1url.`product_id`
FROM
`m2.store`.url_rewrite AS m2url
INNER JOIN
`m1.store`.core_url_rewrite AS m1url ON `m2url`.`url_rewrite_id` = `m1url`.`url_rewrite_id`
WHERE
`m1url`.`product_id` IS NOT NULL
Ошибка:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM
`m2.store`.url_rewrite as m2url
INNER JOIN
`m1.store' at line 6