由于其中一个字段的存在,我们使用了两个字段,ZipCode是一个可空字段。如果表中存在一个带有null条目的ZipCode记录,那么我们不希望一个新记录与其他三个字段匹配,但是有一个已定义的ZipCode并被添加(反之亦然)。[ZipCodeTerritory] [ChannelCode] ASC, [ZipCode] ASC,WHERE ([ZipCode] IS NOT NULL)
WITH (PAD
这就是我所拥有的:set centers.city = (from centers, zipcode_typeswhere centers.city="" and centers.zipcode=zip);ERROR 1093 (HY000): You can't specifytarget table 'city' for update i