表层次结构

下图显示如何关联 superstores_demo 数据库的分层表。两个表之间的外键和主键关系由从 customer.custnumcustomer.loc 列指向 location.location_id 列的阴影箭头指示。

图: superstores_demo 表的层次结构


标注的矩形描述 6 个表以及它们的列名。在此 retail_customer 和 whlsale_customer 为顾客的子表,location_us 和 location_non_us 为子表的位置。结束图片描述