1 2
|
INSERT INTO mvt (vendeur, type, numero, date_document, jour, mois, annee, numero_client, nom_client, adresse_client, cp_client, ville_client, pays_client, numero_article, nom_article,code_article, marque_article, qte, unite, base, unite_base, poids, montant, remise_ligne, remise_facture, tva, adresse_facturation, cp_facturation, ville_facturation, pays_facturation, identification) SELECT :vendeur, :type, :numero, :date_document, :jour, :mois, :annee, :numero_client, :nom_client, :adresse_client, :cp_client, :ville_client, :pays_client, :numero_article, :nom_article, :code_article, :marque_article, :qte, :unite, :base, :unite_base, :poids, :montant, :remise_ligne, :remise_facture, :tva, :adresse_facturation, :cp_facturation, :ville_facturation, :pays_facturation, :identification FROM dual WHERE NOT EXISTS (SELECT 1 FROM mvt WHERE type = :type AND numero = :numero AND identification = :identification) |
Partager