How can I store a list of primary keys in a MySQL record?
-
I have a list of IP in a table that I link with a user in another table. For one IP it works well, but for multiple IP to one user it become harder. I want to avoid duplicates so I think that I need an ENUM type column in my user table .... However ENUM is static sized and I need dynamic size. Is there any trick that avoids me to use serialization technique in a text or blob type ?
-
Answer:
Why not have a separate table to contain the links? (e.g. a table that has a user_id and ip_id)
Joe Emison at Quora Visit the source
Related Q & A:
- Can I do a Master Boot Record fix with a Knoppix 6.1 CD? And How?Best solution by Super User
- How can I remove a contact from a list in my address book?Best solution by windows.microsoft.com
- How can I find a list of births in Wiesbaden, Germany?Best solution by Yahoo! Answers
- How can I record a VCR to a CD?Best solution by Yahoo! Answers
- How can I get a job at a resort for a Summer?Best solution by eHow old
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.