par
guigui69 » 25 avr. 2008, 12:21
D'accord je corrige ca:
Mysql version 5.
inventaire_mat
Code : Tout sélectionner
-- phpMyAdmin SQL Dump
-- version 2.9.1.1-Debian-2ubuntu1
-- http://www.phpmyadmin.net
--
-- Serveur: localhost
-- Généré le : Vendredi 25 Avril 2008 à 12:15
-- Version du serveur: 5.0.38
-- Version de PHP: 5.2.1
--
-- Base de données: `pdr`
--
-- --------------------------------------------------------
--
-- Structure de la table `inventaire_mat`
--
CREATE TABLE `inventaire_mat` (
`id_inventaire_mat` int(11) NOT NULL auto_increment,
`date_inventaire_mat` date NOT NULL,
`qte_inventaire_mat` decimal(10,5) NOT NULL,
`code_m` int(11) NOT NULL,
`mois_inventaire_mat` int(6) NOT NULL,
`annee_inventaire_mat` int(4) NOT NULL,
`pu_j_inventaire_mat` decimal(10,5) NOT NULL,
PRIMARY KEY (`id_inventaire_mat`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=123 ;
--
-- Contenu de la table `inventaire_mat`
--
INSERT INTO `inventaire_mat` (`id_inventaire_mat`, `date_inventaire_mat`, `qte_inventaire_mat`, `code_m`, `mois_inventaire_mat`, `annee_inventaire_mat`, `pu_j_inventaire_mat`) VALUES
(1, '2008-02-01', 0.00000, 1, 2, 2008, 0.00000),
(59, '2008-02-01', 0.00000, 59, 2, 2008, 0.00000),
(60, '2008-02-01', 0.00000, 60, 2, 2008, 0.00000),
(61, '2008-02-01', 0.00000, 61, 2, 2008, 0.00000),
(62, '2008-03-21', 1.00000, 1, 3, 2008, 0.00000),
(63, '2008-03-21', 1.00000, 2, 3, 2008, 0.00000),
(64, '2008-03-21', 1.00000, 3, 3, 2008, 0.00000),
(65, '2008-03-21', 1.00000, 4, 3, 2008, 0.00000),
(66, '2008-03-21', 1.00000, 5, 3, 2008, 0.00000),
(67, '2008-03-21', 1.00000, 6, 3, 2008, 0.00000),
matiere:
Code : Tout sélectionner
-- Structure de la table `matiere`
--
CREATE TABLE `matiere` (
`code_m` int(11) NOT NULL auto_increment,
`nom_m` varchar(50) NOT NULL COMMENT 'Nom de la matiere premiere',
`id_four` int(11) NOT NULL COMMENT 'fournisseur',
`cond_m` int(11) NOT NULL COMMENT 'le nombre de quantité',
`id_conditionnement` int(10) NOT NULL COMMENT 'au kg en piece',
`pu_m` decimal(10,5) NOT NULL COMMENT 'prix unitaire',
`id_conditionnement_pu` int(10) NOT NULL COMMENT 'mesure kg pice rame',
`coef_mat_pdr` decimal(10,5) default NULL,
`pu_mat_pdr` decimal(10,5) default NULL,
`composup25_m` varchar(30) default NULL,
`date_m` date NOT NULL COMMENT 'date de maj',
`id_matiere_type` int(11) NOT NULL,
PRIMARY KEY (`code_m`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=75 ;
--
-- Contenu de la table `matiere`
--
INSERT INTO `matiere` (`code_m`, `nom_m`, `id_four`, `cond_m`, `id_conditionnement`, `pu_m`, `id_conditionnement_pu`, `coef_mat_pdr`, `pu_mat_pdr`, `composup25_m`, `date_m`, `id_matiere_type`) VALUES
(1, 'Eau Fleur Oranger ', 51, 1, 2, 2.70000, 2, 1.00000, 2.70000, '', '2008-01-28', 1),
(2, 'Eau Fleur Oranger ', 14, 20, 2, 0.94000, 2, 1.00000, 0.94000, '', '2008-01-28', 1),
(3, 'Gouttelines Choco 44%', 10, 25, 1, 1.88000, 1, 0.00000, 0.00000, '', '2008-01-28', 1),
(4, 'Palet Choco 44%', 10, 25, 1, 1.82000, 1, 0.00000, 0.00000, '', '2008-01-28', 1),
(5, 'Arome Citron', 17, 25, 1, 10.48000, 1, 0.00000, 0.00000, '', '2008-01-28', 1),
(6, 'Comte', 13, 10, 1, 8.20000, 1, 1.00000, 8.20000, '', '2008-01-28', 1),
(7, 'Roquefort En Des Pot De 500G', 13, 1, 1, 17.42400, 1, 0.00000, 0.00000, '', '2008-01-28', 1),
(8, 'Lardons Fumes Supérieurs ', 15, 1, 1, 3.50000, 1, 1.00000, 3.50000, '', '2008-01-28', 1),
(9, 'Creme A Froid (Pain Raisin)', 49, 25, 1, 1.50000, 1, 0.00000, 0.00000, '', '2008-01-28', 1),
(10, 'Premix Fantaisies', 50, 25, 1, 2.78551, 1, 0.00000, 0.00000, '', '2008-01-28', 1),
Merci
guigui69
D'accord je corrige ca:
Mysql version 5.
inventaire_mat
[code]
-- phpMyAdmin SQL Dump
-- version 2.9.1.1-Debian-2ubuntu1
-- http://www.phpmyadmin.net
--
-- Serveur: localhost
-- Généré le : Vendredi 25 Avril 2008 à 12:15
-- Version du serveur: 5.0.38
-- Version de PHP: 5.2.1
--
-- Base de données: `pdr`
--
-- --------------------------------------------------------
--
-- Structure de la table `inventaire_mat`
--
CREATE TABLE `inventaire_mat` (
`id_inventaire_mat` int(11) NOT NULL auto_increment,
`date_inventaire_mat` date NOT NULL,
`qte_inventaire_mat` decimal(10,5) NOT NULL,
`code_m` int(11) NOT NULL,
`mois_inventaire_mat` int(6) NOT NULL,
`annee_inventaire_mat` int(4) NOT NULL,
`pu_j_inventaire_mat` decimal(10,5) NOT NULL,
PRIMARY KEY (`id_inventaire_mat`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=123 ;
--
-- Contenu de la table `inventaire_mat`
--
INSERT INTO `inventaire_mat` (`id_inventaire_mat`, `date_inventaire_mat`, `qte_inventaire_mat`, `code_m`, `mois_inventaire_mat`, `annee_inventaire_mat`, `pu_j_inventaire_mat`) VALUES
(1, '2008-02-01', 0.00000, 1, 2, 2008, 0.00000),
(59, '2008-02-01', 0.00000, 59, 2, 2008, 0.00000),
(60, '2008-02-01', 0.00000, 60, 2, 2008, 0.00000),
(61, '2008-02-01', 0.00000, 61, 2, 2008, 0.00000),
(62, '2008-03-21', 1.00000, 1, 3, 2008, 0.00000),
(63, '2008-03-21', 1.00000, 2, 3, 2008, 0.00000),
(64, '2008-03-21', 1.00000, 3, 3, 2008, 0.00000),
(65, '2008-03-21', 1.00000, 4, 3, 2008, 0.00000),
(66, '2008-03-21', 1.00000, 5, 3, 2008, 0.00000),
(67, '2008-03-21', 1.00000, 6, 3, 2008, 0.00000),
[/code]
matiere:
[code]
-- Structure de la table `matiere`
--
CREATE TABLE `matiere` (
`code_m` int(11) NOT NULL auto_increment,
`nom_m` varchar(50) NOT NULL COMMENT 'Nom de la matiere premiere',
`id_four` int(11) NOT NULL COMMENT 'fournisseur',
`cond_m` int(11) NOT NULL COMMENT 'le nombre de quantité',
`id_conditionnement` int(10) NOT NULL COMMENT 'au kg en piece',
`pu_m` decimal(10,5) NOT NULL COMMENT 'prix unitaire',
`id_conditionnement_pu` int(10) NOT NULL COMMENT 'mesure kg pice rame',
`coef_mat_pdr` decimal(10,5) default NULL,
`pu_mat_pdr` decimal(10,5) default NULL,
`composup25_m` varchar(30) default NULL,
`date_m` date NOT NULL COMMENT 'date de maj',
`id_matiere_type` int(11) NOT NULL,
PRIMARY KEY (`code_m`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=75 ;
--
-- Contenu de la table `matiere`
--
INSERT INTO `matiere` (`code_m`, `nom_m`, `id_four`, `cond_m`, `id_conditionnement`, `pu_m`, `id_conditionnement_pu`, `coef_mat_pdr`, `pu_mat_pdr`, `composup25_m`, `date_m`, `id_matiere_type`) VALUES
(1, 'Eau Fleur Oranger ', 51, 1, 2, 2.70000, 2, 1.00000, 2.70000, '', '2008-01-28', 1),
(2, 'Eau Fleur Oranger ', 14, 20, 2, 0.94000, 2, 1.00000, 0.94000, '', '2008-01-28', 1),
(3, 'Gouttelines Choco 44%', 10, 25, 1, 1.88000, 1, 0.00000, 0.00000, '', '2008-01-28', 1),
(4, 'Palet Choco 44%', 10, 25, 1, 1.82000, 1, 0.00000, 0.00000, '', '2008-01-28', 1),
(5, 'Arome Citron', 17, 25, 1, 10.48000, 1, 0.00000, 0.00000, '', '2008-01-28', 1),
(6, 'Comte', 13, 10, 1, 8.20000, 1, 1.00000, 8.20000, '', '2008-01-28', 1),
(7, 'Roquefort En Des Pot De 500G', 13, 1, 1, 17.42400, 1, 0.00000, 0.00000, '', '2008-01-28', 1),
(8, 'Lardons Fumes Supérieurs ', 15, 1, 1, 3.50000, 1, 1.00000, 3.50000, '', '2008-01-28', 1),
(9, 'Creme A Froid (Pain Raisin)', 49, 25, 1, 1.50000, 1, 0.00000, 0.00000, '', '2008-01-28', 1),
(10, 'Premix Fantaisies', 50, 25, 1, 2.78551, 1, 0.00000, 0.00000, '', '2008-01-28', 1),
[/code]
Merci
guigui69