![]() ![]() In this case, both a person and a place could end up referencing the same code (which we do not want). how do I ensure they do not point to the same reference_code row? now that I have two tables with foreign keys, How do I enforce uniqueness of this value across tables (either via a foreign key or just the value itself?) CREATE TABLE reference_codes (ĬREATE UNIQUE INDEX index_reference_codes_on_code ON public.reference_codes USING btree (code)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |