我正在寻找SQL
查询脚本:
COPY ContactName, City
WHERE CustomerID (A)
TO ContactName, City
WHERE CustomerID (B)
我知道这不对,但我希望你理解我的意思。
问候!
答案 0 :(得分:0)
UPDATE Customers
SET ContactName = (SELECT ContactName WHERE CustomerID ='A'), City = (SELECT City WHERE CustomerID ='A')
WHERE CustomerID=B
这应该有效