je dispose d'une base de données avec deux tables "artiste" et "concerts", et j'aimerais afficher les concerts en fonction d'un artiste mais je n'arrive pas à faire ma requète. voici la structure des tables :
Code : Tout sélectionner
CREATE TABLE `artiste` (
`idartiste` smallint(11) NOT NULL auto_increment,
`nom` varchar(50) NOT NULL default '',
`prenom` varchar(50) NOT NULL default '',
`site` varchar(40) NOT NULL default '',
`bio` text NOT NULL,
PRIMARY KEY (`idartiste`)
) TYPE=MyISAM AUTO_INCREMENT=209 ;
Code : Tout sélectionner
CREATE TABLE `concerts` (
`idconcert` smallint(11) NOT NULL auto_increment,
`date` date NOT NULL default '0000-00-00',
`heure` time NOT NULL default '00:00:00',
`salle` varchar(50) NOT NULL default '',
`prix` tinyint(4) NOT NULL default '0',
`ville` smallint(11) NOT NULL default '0',
`idartiste` smallint(11) NOT NULL default '0',
PRIMARY KEY (`idconcert`,`idartiste`)
) TYPE=MyISAM AUTO_INCREMENT=2 ;
merci pour votre aide