我有两张桌子......
Table 1
------------
Col 1a
Col 1b
Col 1c
Table 2
------------
Col 2a
Col 2b
Col 2c
我如何写一个MySQL语句将数据从Col 1a复制到Col 2a,Col 1b到Col 2b和Col 1c到Col 2c?
答案 0 :(得分:5)
INSERT Table2 (Col2a, Col2b, Colc2)
SELECT Col1a, Col1b, Col1c FROM Table1