अगर यह SELECT
. है यह काम करता है:
select despgoods.`case number`
, despgoods.weight
, despgoods.customer
, customers.transporttypename
from despgoods
inner join customers
on despgoods.customer = customers.customer
फिर इसे आज़माएं (ध्यान दें कि कोई VALUES
नहीं है यदि आप 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