I want to insert some records that comes from a table into another table using INSERT ... IGNORE
:
INSERT IGNORE into separa (no_cliente,contratante) values (select cl_num,cl_aseg from clientes)
But MySQL tells that I'm wrong, any help?
I want to insert some records that comes from a table into another table using INSERT ... IGNORE
:
INSERT IGNORE into separa (no_cliente,contratante) values (select cl_num,cl_aseg from clientes)
But MySQL tells that I'm wrong, any help?
Remove
VALUES
and braces, excludeSELECT
:Read more here.