Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: Perl DBI and Foreign Keys

by Marshall (Canon)
on Apr 08, 2019 at 08:37 UTC ( [id://1232279]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Perl DBI and Foreign Keys
in thread Perl DBI and Foreign Keys

I'm not sure if you saw my update with a "piece of paper" from a crime scene analogy?

I used the Url as the link between tables because it was easily available and guaranteed unique.
So why have 2 tables?
Answer: I didn't want to set or declare a maximum number of columns in the main ScoreCard table.
Each entry in the ScoreCard table can have an unlimited number of Participants.
Why use integer id instead of Url?
Answer: because it would save space. I didn't do it or need to do it in this case.
Could a situation arise where a human shouldn't be required to enter a unique field for a row and where number of columns is not fixed?
Answer:Absolutely.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1232279]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-16 21:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found