jjzjj

nearestPostcode

全部标签

mySQL - 使用返回多行的选择更新多列

我有一张邮政编码表,我想用它最近的3个邻居更新每个邮政编码。即填表中的空白:postcodenearestPostcode1nearestPostcode2nearestPostcode3_______________________________________________________________KY61DA---KY61DG---KY62DT---KY61RG---....我想出了一个SELECT查询来查找最近的邮政编码,这是一种可以更新第一行的笨拙方法:updatetable1setnearestPostcode1=(selectqueryforreturningt

mySQL - 使用返回多行的选择更新多列

我有一张邮政编码表,我想用它最近的3个邻居更新每个邮政编码。即填表中的空白:postcodenearestPostcode1nearestPostcode2nearestPostcode3_______________________________________________________________KY61DA---KY61DG---KY62DT---KY61RG---....我想出了一个SELECT查询来查找最近的邮政编码,这是一种可以更新第一行的笨拙方法:updatetable1setnearestPostcode1=(selectqueryforreturningt