SQL Server: copy data from one column to another column?
问题 I have two tables with the same column anomaly_id . I want to copy the row of anomaly_id from the first table to the second table using this code UPDATE amb.anamoly_log_update SET anamoly_id = t2.anomaly_id FROM amb.anamoly_log_update t1 INNER JOIN amb.anomaly_fee t2 ON t1.anamoly_id=t2.anomaly_id Even after I did that it shows 0 rows affected, when there is data in amb.anomaly.fee (source table) Please help Edit: Comment from post: I just want to copy all the anamoly_id from amb.anamoly_fee