Hello, i am trying to take certain fields from one table and insert them into another table using one query. I have tried using the following sql:
INSERT INTO invoices( ' ', company, firstname, lastname, email, address1, address2, town, city, county, country, postcode )
SELECT company, firstname, lastname, email, address1, address2, town, city, county, country, postcode
FROM `clients`
WHERE id =2
however i get the following error message:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' ',company,firstname,lastname,email,address1,address2,town,city,county,country,' at line 1
by the way i am using MySql version 5.0.67-community
any help greatly appreciated.