Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

copy data from one table column to another table column in sql

#to copy or update a table column from another table column 
UPDATE table_name1 
    SET column1 = (
        SELECT column2
        FROM table_name2
        WHERE table_name1.id = table_name2.id
    );
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #copy #data #table #column #table #column #sql
ADD COMMENT
Topic
Name
7+5 =