我正在尝试此查询,但它在子查询中输出语法错误。
问题是什么,如何解决?谢谢
UPDATE CompradorCategorias_new as A
SET A.idParent=(
SELECT idcategoria
FROM categoriasi18n_new
WHERE
(
SELECT SUBSTRING_INDEX(NomeComPath, '>', 2)
FROM CompradorCategorias_new
=
SELECT translationWithPath
FROM categoriasi18n_new
)
)