Quote (Nothus @ May 18 2015 11:56am)
Hello guys,
maybe someone of you can help me. Already got two different tables inside my database, but I want to make relation between them as "one to many".
They are both on InnoDB engine, but still have no clue how to connect record from table A to 5 records from table B.
Iso help =(
regards!
I'm not sure I fully understand your problem. Your database doesn't necessarily need to know if the relationship is one to many or many to many or whatever. It's the code you write that controls the relationships.
You will want to set up a foreign key on the child table in question, which I could explain if you had more specifics here.
"mysqldump -d -u <username> -p <username_databasename> > dump.sql" to get a dump if your database if you don't know how.
If you'd rather you can PM me with specifics and I can see if I can help you out.