Bonjour,j'ai un projet à faire et j'aimerai pouvoir beneficier de votre aide le plus rapidement possible.
En effet j dois creer un application Bank (virement,crediter,debiter un compte,changer de profil utilisateur. la base de données est composée de des tables:
--
-- Structure de la table `agent`
--
CREATE TABLE IF NOT EXISTS `agent` (
`Mat_agent` varchar(20) NOT NULL default '',
`Prenom_Agent` varchar(50) NOT NULL default '',
`Nom_Agent` varchar(30) NOT NULL default '',
`Email_Agent` varchar(30) NOT NULL default '',
`Id_Departement` int(11) NOT NULL default '0',
`Login_user` varchar(30) NOT NULL default '',
`Mot_de_passe` varchar(30) NOT NULL default '',
`Privilege` varchar(11) NOT NULL default '',
`Connecte` varchar(20) NOT NULL default '',
PRIMARY KEY (`Mat_agent`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- ------------------------------------------
- Structure de la table `client`
--
CREATE TABLE IF NOT EXISTS `client` (
`id_client` int(11) NOT NULL auto_increment,
`Nom_Client` varchar(30) NOT NULL default '',
`Prenom_Client` varchar(50) NOT NULL default '',
`Tel_Client` varchar(30) NOT NULL default '',
`Email_Client` varchar(40) NOT NULL default '',
PRIMARY KEY (`id_client`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
--
-- Structure de la table `compte`
--
CREATE TABLE IF NOT EXISTS `compte` (
`num_compte` int(10) NOT NULL auto_increment,
`solde_compte` int(10) NOT NULL default '0',
`type_compte` varchar(20) NOT NULL,
`id_client` int(10) NOT NULL,
PRIMARY KEY (`num_compte`),
KEY `id_client` (`id_client`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1234567826 ;
--
-- Contraintes pour les tables exportées
--
--
-- Contraintes pour la table `compte`
--
ALTER TABLE `compte`
ADD CONSTRAINT `compte_ibfk_1` FOREIGN KEY (`id_client`) REFERENCES `client` (`id_client`);
Merci de bien m'aider s'il vous plait merci!