我有来自在线 SQL Server 教程的代码。我需要将其转换为 MySql。我已经更改ISNULL
为ifnull
,但我仍然有来自问题标题的错误:
UPDATE a
SET PropertyAddress = ifnull(a.PropertyAddress, b.PropertyAddress)
FROM Nashvillehousing as a
JOIN Nashvillehousing as b
ON a.ParcelID = b.ParcelID
AND a.UniqueID <> b.UniqueID
WHERE a.PropertyAddress IS NULL;
如何解决此问题以在 MySql 上运行?