Enforce unique values across two tables

后端 未结 7 1282
慢半拍i
慢半拍i 2021-01-01 20:48

Is it possible to enforce uniqueness across two tables in MySQL?

I have two tables, both describing users. The users in these tables were for two different systems p

7条回答
  •  南笙
    南笙 (楼主)
    2021-01-01 20:52

    the best way to do this is to declare another table with the unique columns, and have the multiple tables reference these tables

提交回复
热议问题