Reputation: 1239
I am copying column1, column2 from table2 but want to insert value of column3 in table1 manually... what should i do? Please help
INSERT INTO table1( column1, column2, column3)
SELECT column1, column2
FROM table2
WHERE `id` = '1'
Upvotes: 3
Views: 1573
Reputation: 30741
like
INSERT INTO table1( column1, column2, column3)
SELECT column1, column2, 'My String' as column3
FROM table2
WHERE `id` = '1'
Upvotes: 6