J'ai deux tables. Une table 'cpte'. La colonne 'section' contient le nom d'une section
CREATE TABLE IF NOT EXISTS `cpte` (
`idRec` int(4) NOT NULL AUTO_INCREMENT,
`nom` text COLLATE utf8_unicode_ci NOT NULL,
`prenom` text COLLATE utf8_unicode_ci NOT NULL,
`id` text COLLATE utf8_unicode_ci NOT NULL,
`pass` text COLLATE utf8_unicode_ci NOT NULL,
`section` text COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`idRec`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2551 ;
Ainsi qu'une table 'section:
CREATE TABLE IF NOT EXISTS `section` (
`section` text COLLATE utf8_unicode_ci NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;'
Contient tous les noms de sections...Je voudrais maintenant afficher toutes les sections qui ne sont pas présentes dans la table 'cpte', donc qui sont vides.
Comment faire ? Je sais écrire une jointure entre deux tables, mais je vais obtenir toutes les sections qui sont identiques ou différentes...
Merci,