0
I need to copy database A data from table A (14columns) to Database B table A (15columns) I need to check accountid if there is no database B table A must copy the data, if there is no.
I tried the command below deleting the column that has different in both banks and would insert later via Sql, but gave the above error. Anyone can help???
INSERT INTO vtiger_account (accountid, account_no, accountname, parentid, account_type, industry, annualrevenue, rating, ownership, siccode, tickersymbol, phone, otherphone, email1, email2, website, fax, employees, emailoptout, notify_owner, isconvertedfromlead)
SELECT (accountid, account_no, accountname, parentid, account_type, industry, annualrevenue, rating, ownership, siccode, tickersymbol, phone, otherphone, email1, email2, website, fax, employees, emailoptout, notify_owner, isconvertedfromlead) FROM aramat01_vt71.vtiger_account WHERE accountid > 1164
Your command does not match the description of what you make of the problem.
– anonimo
Hello I understood what you need, but before providing you a possible solution I would like to know the following: The second table has 1 more field, this field is mandatory? after your SELECT there are Parentheses I believe is wrong, try to remove them and run the command again...
– Raphael Godoi