Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I have two tables...
Table 1 ------------ Col 1a Col 1b Col 1c Table 2 ------------ Col 2a Col 2b Col 2c
How would I write a MySQL statement to copy data from Col 1a to Col 2a, Col 1b to Col 2b and Col 1c to Col 2c all at once?
INSERT Table2 (Col2a, Col2b, Colc2) SELECT Col1a, Col1b, Col1c FROM Table1
Add a comment
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.