Relacionamento muitos-para-muitos do MySQL
CREATE TABLE `example_doc` ( `example_id` int(10) unsigned NOT NULL, `doc_id` int(10) unsigned NOT NULL, PRIMARY KEY (`example_id`,`doc_id`))CREATE TABLE `example` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, …
Continuar lendo