Mark Rainess <mrain...@lhdvending.com> wrote: > CREATE TABLE tags_product ( > id INTEGER PRIMARY KEY, > tag_id INTEGER NOT NULL, > product_id INTEGER NOT NULL, > FOREIGN KEY(tag_id) REFERENCES tags(id), > FOREIGN KEY(tag_id) REFERENCES product_product(id)
Should this be FOREIGN KEY(product_id) REFERENCES product_product(id) ? -- Igor Tandetnik _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users