S'il s'agit du SELECT
ça marche :
select despgoods.`case number`
, despgoods.weight
, despgoods.customer
, customers.transporttypename
from despgoods
inner join customers
on despgoods.customer = customers.customer
Ensuite, essayez ceci (notez qu'il n'y a pas de VALUES
clause si vous souhaitez insérer le jeu de résultats d'un SELECT
:
insert into despgoods_alldetails
(`case number`, weight, customer, transporttypename)
select despgoods.`case number`
, despgoods.weight
, despgoods.customer
, customers.transporttypename
from despgoods
inner join customers
on despgoods.customer = customers.customer