Je dois copier le contenu d'une table vers une autre. Elles sont pratiquement identiques:
Code : Tout sélectionner
-- Structure de la table `admincom`
--
CREATE TABLE `admincom` (
`idCom` int(4) NOT NULL AUTO_INCREMENT,
`designation` text collate utf8_unicode_ci NOT NULL,
`quantite` decimal(10,0) NOT NULL,
`section` text collate utf8_unicode_ci NOT NULL,
`idUser` int(2) NOT NULL,
PRIMARY KEY (`idCom`)
) ...
--
-- Structure de la table `historique`
--
CREATE TABLE `historique` (
`idCom` int(4) NOT NULL AUTO_INCREMENT,
`designation` text collate utf8_unicode_ci NOT NULL,
`quantite` decimal(10,1) NOT NULL,
`section` text collate utf8_unicode_ci NOT NULL,
`idUser` int(2) NOT NULL,
`date` date NOT NULL,
PRIMARY KEY (`idCom`)merci,