TAILIEUCHUNG - Professional XML Databases phần 2

Nếu mối quan hệ nhiều-một, hoặc đứa trẻ có nhiều hơn một phụ huynh, sau đó chúng ta cần sử dụng chỉ để mô tả mối quan nhìn thấy làm thế nào để mô hình dữ liệu XML của chúng tôi, chúng tôi bây giờ cần phải biết làm thế nào để làm việc với dữ liệu đó. | XML Structures for Existing Databases ATTLIST Invoice InvoiceID ID REQUIRED InvoiceNumber CdAtA REQUIRED TrackingNumber CDATA REQUIRED OrderDate CDATA REQUIReD ShipDate CDATA REQUIRED ShipMethod USPS FedEx UPS REQUIRED ELEMENT MonthlyTotal MonthlyCustomerTotal MonthlyPartTotal ATTLIST MonthlyTotal MonthlyTotalID ID REQUIRED Month CDATA REQUIRED Year CDATA REQUIRED VolumeShipped CDATA REQUIRED PriceShipped CDATA REQUIRED Rule 8 Adding Relationships through Containment. For each relationship we have defined if the relationship is one-to-one or one-to-many in the direction it is being navigated and no other relationship leads to the child within the selected subset then add the child element as element content of the parent element with the appropriate cardinality. Many-to-One or Multiple Parent Relationships If the relationship is many-to-one or the child has more than one parent then we need to use pointing to describe the relationship. This is done by adding an IDREF or IDREFS attribute to the element on the parent side of the relationship. The IDREF should point to the ID of the child element. If the relationship is one-to-many and the child has more than one parent we should use an IDREFS attribute instead. Note that if we have defined a relationship to be navigable in either direction for the purposes of this analysis it really counts as two different relationships. Note that these rules emphasize the use of containment over pointing whenever it is possible. Because of the inherent performance penalties when using the DOM and SAX with pointing relationships containment is almost always the preferred solution. If we have a situation that requires pointing however and its presence in our structures is causing too much slowdown in our processing we may want to consider changing the relationship to a containment relationship and repeating the information pointed to wherever it would have appeared before. Applying this rule to our example and adding IDREF IDREFS .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.