Example:
select *
from
component
inner join
component_supplier on component.id = component_supplier.component_id
inner join
supplier on supplier.id = component_supplier.supplier_id
where
component_supplier.supplier_part_no = ".048_CR_SHT_A1008_CS_TP_ B_4ftx8ft"
I want to take this data and chop it up and cram it into another table as so:
INSERT into sugarcrm2.jce_components jce_c(
id,
name,
part_no_id,
part_no,
cost,
lead,
qty,
units,
class,
category,
notes )
VALUES(
a bunch of different values that I get from that first select.
)
INSERT can take the form: