错误代码:1064。您的SQL语法中有一个错误; '来自portfolio.nashville_housing_data内部加入PORTFOLIO.NASHVILLE_HOUSING_DAT'在第3行
在更新我的桌子时遇到问题。我对此非常新鲜,所以它可能很简单,但我无法弄清楚。
UPDATE a
SET PropertyAddress = IFNULL(a.PropertyAddress, b.PropertyAddress)
FROM portfolio.nashville_housing_data a
INNER JOIN portfolio.nashville_housing_data b
on a.ParcelID = b.ParcelID
and a.UniqueID <> b.UniqueID
WHERE a.PropertyAddress is null
mysql。试图将值填充到与ParcelID相对应的PropertyAddress中。
前任。
ParcelID PropertyAddress
11111 1234 St City
11111 NULL
由于它们具有相同的parcelID,因此需要两个值中的两个值才能读取相同的内容。
请帮助我新来。谢谢。
Having problem updating my table. Im very new at this so its probably something simple but i cant figure it out.
UPDATE a
SET PropertyAddress = IFNULL(a.PropertyAddress, b.PropertyAddress)
FROM portfolio.nashville_housing_data a
INNER JOIN portfolio.nashville_housing_data b
on a.ParcelID = b.ParcelID
and a.UniqueID <> b.UniqueID
WHERE a.PropertyAddress is null
MYSQL. Trying to populate values back into PropertyAddress that correspond with ParcelID.
EX.
ParcelID PropertyAddress
11111 1234 St City
11111 NULL
Need both values in PropertyAddress to read the same since they have the same ParcelID.
Please help I'm new at this. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的Systax在MySQL中不起作用,它一定像下面
db&lt;
You systax doesn't work in mysql, it must be like below
db<>fiddle here