Created
September 23, 2021 01:51
-
-
Save nix1947/56e66d1b9d9043e7366ec5f452f64baf to your computer and use it in GitHub Desktop.
unique column with multiple column in mysql. (Useful for one to one relation)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- One to one relation between user_order and shipping_address table. | |
create table user_order ADD UNIQUE index("id", "shipping_address_id"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment