Alex Rivera | Logout

SQL Server: Copying column within table

Asked 2008-10-06T09:49:17.653
24

What is the easiest way to copy the all the values from a column in a table to another column in the same table?

Edit
Report

1 Answer

50

With a single statement (if the columns have the same datatype)

UPDATE <tablename>
SET <destination column name> = <source column name>
answered 2008-10-06T09:50:53.920

Your Answer