Inserer tous les données d'une table dans une
Résolu/Fermé
maiil48
Messages postés
3
Date d'inscription
mercredi 12 mai 2010
Statut
Membre
Dernière intervention
12 mai 2010
-
12 mai 2010 à 15:01
napsterockoeur Messages postés 198 Date d'inscription vendredi 16 novembre 2007 Statut Membre Dernière intervention 30 juin 2010 - 12 mai 2010 à 15:52
napsterockoeur Messages postés 198 Date d'inscription vendredi 16 novembre 2007 Statut Membre Dernière intervention 30 juin 2010 - 12 mai 2010 à 15:52
A voir également:
- Inserer tous les données d'une table dans une
- Insérer une vidéo dans powerpoint - Guide
- Table ascii - Guide
- Comment insérer une table des matières dans word - Guide
- Insérer une liste déroulante excel - Guide
- Insérer une signature sur word - Guide
1 réponse
napsterockoeur
Messages postés
198
Date d'inscription
vendredi 16 novembre 2007
Statut
Membre
Dernière intervention
30 juin 2010
10
12 mai 2010 à 15:07
12 mai 2010 à 15:07
tn message d'erreur : indique k'une tentative d'une mise à jour à été effectuée sur une clé primaire ou unique d'une table (Insert ou Update).
fait attention :)
fait attention :)
12 mai 2010 à 15:18
12 mai 2010 à 15:25
12 mai 2010 à 15:32
insert into ano_ventes (CODANO,NOMFIC,DATANO,TYPLIG,NUMERO,CODECLI,MODELE,REFMODEL,GAMME,NUMSERIE,LIEUACHAT,VENDEUR,DATACHAT,DTDEBUT,DTFIN,NUMBV,NLIGNE,NSOUSLIG,DTDERMAJ,MARQUE,DTANNULE,REFINTER,GENCODE,PV41TTC,TAUXTVA,PVTTCNOR,PVENTE,PVNOREMI,PATTC,PAHT,NUMFACT,NMAGFACT,QTE,MONNAIE,DESIGNAT,INDICAT,N_VENDEUR,P_VENDEUR,TYPESORT,CD_REDEVANCE,TYPVENTE,CD_SALARIE,IND_ANO,CLE_CLI,NUDOSS2P,CDMODEP,IND_CLOTURE)
select CODANO,NOMFIC,DATANO,TYPLIG,NUMERO,CODECLI,MODELE,REFMODEL,GAMME,NUMSERIE,LIEUACHAT,VENDEUR,DATACHAT,DTDEBUT,DTFIN,NUMBV,NLIGNE,NSOUSLIG,DTDERMAJ,MARQUE,DTANNULE,REFINTER,GENCODE,PV41TTC,TAUXTVA,PVTTCNOR,PVENTE,PVNOREMI,PATTC,PAHT,NUMFACT,NMAGFACT,QTE,MONNAIE,DESIGNAT,INDICAT,N_VENDEUR,P_VENDEUR,TYPESORT,CD_REDEVANCE,TYPVENTE,CD_SALARIE,IND_ANO,CLE_CLI,NUDOSS2P,CDMODEP,IND_CLOTURE
from histo_ano_ventes
where histo_ano_ventes.codano='DAC'
12 mai 2010 à 15:52
2 - si les champs sont identique, essaye avec sa :
Insert into ano_ventes
Select *
From histo_ano_ventes
Where histo_ano_ventes.codano='DAC'