· 6 years ago · Jun 27, 2019, 01:20 AM
1CREATE TABLE IF NOT EXISTS `etiquetas_en_mensajes` (
2 `id` int(11) NOT NULL AUTO_INCREMENT,
3 `id_mensaje` int(11) NOT NULL,
4 `id_etiqueta` int(11) NOT NULL,
5 PRIMARY KEY (`id`),
6 UNIQUE KEY `unique_index` (`id_etiqueta`,`id_mensaje`)
7) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=latin1;