Citation :
INSERT INTO glpi_infocoms (FK_device,device_type,buy_date,use_date,warranty_info,FK_enterprise,value,comments)
SELECT postes.idposte,1,postes.dateachat,postes.dateachat,postes.notes,glpi_enterprises.ID,postes.prixachat,CAST(postes.annerenou AS CHAR) FROM postes
INNER JOIN (glpi_enterprises INNER JOIN tiers ON tiers.nom = glpi_enterprises.name) ON postes.idfournisseur = tiers.id
|