How would I go about storing an array of references in a row? For example, if I were to make an online trading card game, I would have a table with all the cards, and each player would have a deck, represented by a list of ID-references.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’d make a separate relation table for that, with
card_owner_idandcard_idas the fields. Set foreign keys accordingly to automatically delete the relations when a card or user is deleted.