duchovnick
Programmer
Hi,
I'm trying to add records from table2 to table1. Table1 has more columns then table2 (two tables are of different structure) and table2's column names of columns exist in table1 carry different names. I use the following code:
And the following error message shows up:
Can anyone help me with that?
I'm trying to add records from table2 to table1. Table1 has more columns then table2 (two tables are of different structure) and table2's column names of columns exist in table1 carry different names. I use the following code:
Code:
INSERT INTO table1(firstname, lastname, city, address1, address3, zip, phone1)
SELECT FROM table2 (name, lastname, city, street, number, zip, extension+'-'+phone)
.Incorrect syntax near the keyword 'FROM'.
Can anyone help me with that?