Jump to content

SQL Child tables?


Username:

Recommended Posts

Didn't edit in time, my apologies.

 

My current structure looks like this:

 

thread ->

---name var(32)

---subject var(128)

---email var(128)

---message longtext(2000)

---last int(11)

---password varchar(128)

---id int(11) <- this is what I need to auto-increment

 

reply ->

---name var(32)

---subject var(128)

---email var(128)

---message longtext(2000)

---password varchar(128)

---id int(11) <- this is what I need to auto-increment

 

I need "id" to be unique over both tables (reply & thread) and consecutive (in thread you'll see 11, and in reply you'll see 12, assuming they were both posted consecutively after eachother)

Link to comment
https://forums.phpfreaks.com/topic/254647-sql-child-tables/#findComment-1305743
Share on other sites

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.