I am trying to select values from one table and load them into another.
This is the code I have
mysql> insert into tblTemp2(abFirst, abLast, abID_temp) values(
-> select abFirst, abLast, concat(substring(abFirst, 1, 1), substring(abLast, 1, 1), abstractorID)from abstractor where abstractor.abLast is not null));
I can't seem to figure out how to use a select within and insert.
Is this not possible?
If so, why do I get an error stateing that I have a syntax error at the begining of my select statement?
Thanks
Jean
This is the code I have
mysql> insert into tblTemp2(abFirst, abLast, abID_temp) values(
-> select abFirst, abLast, concat(substring(abFirst, 1, 1), substring(abLast, 1, 1), abstractorID)from abstractor where abstractor.abLast is not null));
I can't seem to figure out how to use a select within and insert.
Is this not possible?
If so, why do I get an error stateing that I have a syntax error at the begining of my select statement?
Thanks
Jean