我制作了通过加入 2 个表 CustomerInfo 和 Offers 产生的网格 将 Offers.OfferDescription 列作为下拉列表,当涉及到编辑模式时,它转到文本框,当我更新时我得到了那个错误
无法绑定多部分标识符“Offers.OfferDescription”
这是我的选择代码
SELECT CustomerInfo.NationalID, CustomerInfo.FNama, CustomerInfo.LName,
CustomerInfo.MobileNumber, Offers.OfferDescription
FROM CustomerInfo INNER JOIN Offers ON CustomerInfo.OfferID = Offers.OfferID
WHERE (CustomerInfo.UserName = @UserName)
这是我的更新代码
UPDATE CustomerInfo
SET PhoneNumber = @PhoneNumber, Offers.OfferDescription = @OfferDescription, FNama = @FNama, LName = @LName, OfferID = @OfferID
FROM CustomerInfo AS CustomerInfo_1 INNER JOIN Offers ON CustomerInfo_1.OfferID = Offers.OfferID CROSS JOIN CustomerInfo