Jump to content

Is it possible to create "subfields" in mysql database?


zeeshan_haider000

Recommended Posts

Is it possible to have like "subfields" in mysql? I mean if I have a field, let's say a field named Fieldy, could I create sub fields under "Fieldy" using PHP?

Ex:

Fieldy (Parent field)

-Child Field 1

-Child Field 2

-ETC Field

 

I want to this so that I could be able to edit parts of a data without altering the whole thing.

How would I do this? Or any alternative?

Thanks

you could do as kickstart stated by doing this

 

table1

id          field1    field2.....

 

table2

id          field1.2    field2.1...

 

 

and use INNER/OUTER JOIN to link the 2 together.

 

see here for explanation of JOINS

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.