Mysql 将表中的一行复制到另一行,并在同一查询中插入一列的值
我正在从表2中复制column1,column2,但希望手动在表1中插入column3的值。。。我该怎么办?请帮忙Mysql 将表中的一行复制到另一行,并在同一查询中插入一列的值,mysql,insert,copy,Mysql,Insert,Copy,我正在从表2中复制column1,column2,但希望手动在表1中插入column3的值。。。我该怎么办?请帮忙 INSERT INTO table1( column1, column2, column3) SELECT column1, column2 FROM table2 WHERE `id` = '1' 像 INSERT INTO table1( column1, column2, column3) SELECT column1, column2, 'My String' a
INSERT INTO table1( column1, column2, column3)
SELECT column1, column2
FROM table2
WHERE `id` = '1'
像
INSERT INTO table1( column1, column2, column3)
SELECT column1, column2, 'My String' as column3
FROM table2
WHERE `id` = '1'