Requires Free Membership to View
Nested tables? Like in Oracle? I've never used them, and all I know about them, I found through Google. For example, the article Oracle9i Data Model Extensions describes nested tables, and frankly, the nested table structure seems to be well beyond novice level. The article furthermore adds the following remark:
Nested tables have the advantage of being indexed, and the repeating groups are separated into another table so as not to degrade the performance of full-table scans. Nested tables allow for an infinite number of repeating groups. However, it sometimes takes longer to dereference the OID to access the nested table entries as opposed to ordinary SQL tables join operations. Most Oracle experts see no compelling benefit of using nested tables over traditional table joins.
In any case, I don't believe you can do anything like this in MySQL. Just create normalized tables, and relate them with primary and foreign keys.
For More Information
- Dozens more answers to tough SQL questions from Rudy Limeback.
- The Best SQL Web Links: tips, tutorials, scripts, and more.
- Have an SQL tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize. Submit your tip today!
- Ask your technical SQL questions -- or help out your peers by answering them -- in our live discussion forums.
- Ask the Experts yourself: Our SQL, database design, Oracle, SQL Server, DB2, metadata, object-oriented and data warehousing gurus are waiting to answer your toughest questions.
This was first published in January 2003

Join the conversationComment
Share
Comments
Results
Contribute to the conversation