I would like to move a column from one table to the other without loosing the data .Can I copy the data to the column in new table without creating any copy/temporary table of the original table.
If you haven't removed the PersonID
column from benefit
table, use the below script to update the newly added column in SchemeMember
table
UPDATE c
SET c.personID =b.personID
FROM benefit b
JOIN SchemeMember c on b.SchemeMemberID =c.SchemeMemberID
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments