Bonjour
Voici la structure de ma table =
1 2 3 4 5 6 7 8 9 10 11
| CREATE TABLE `paiement` (
`idPaiement` int(11) NOT NULL,
`numFacture` int(11) NOT NULL,
`montant` float NOT NULL,
`date` varchar(8) NOT NULL,
`type_paiement` enum('','Chèque','Virement','CB','Liquide','Avoir') NOT NULL,
`commentaire` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
ADD PRIMARY KEY (`idPaiement`);
MODIFY `idPaiement` int(11) NOT NULL AUTO_INCREMENT;COMMIT; |
Et je ne comprends pas pourquoi cette requête ne fonctionne pas =
INSERT INTO paiement (idPaiement, numFacture, date, montant, type_paiement, commentaire) select NULL, numFacture ,date, montant, type_paiement, commentaire FROM paiement where numFacture = '1144'
Ca répond = 0 ligne créée 
Merci de votre aide et très bonne journée 
PlugX
Partager