【发布时间】:2014-07-21 04:28:26
【问题描述】:
我正在从 table2 复制 column1、column2 但想手动在 table1 中插入 column3 的值...我该怎么办?请帮忙
INSERT INTO table1( column1, column2, column3)
SELECT column1, column2
FROM table2
WHERE `id` = '1'
【问题讨论】:
我正在从 table2 复制 column1、column2 但想手动在 table1 中插入 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' as column3
FROM table2
WHERE `id` = '1'
【讨论】: