TAILIEUCHUNG - Professional XML Databases phần 8

XPath kỳ quặc như thế này buộc chúng tôi khuyên bạn nên chống lại việc sử dụng các đường dẫn dài như A / B trong các vị. Nhiều khả năng, có nghĩa là bạn muốn thực sự là một vị lồng nhau như sản phẩm / Đặt hàng [[@ UnitPrice 10]] nào. Bởi vì SQL XML không hỗ trợ các vị vị trí, nó sử dụng "bất kỳ" | XML Views in SQL Server 2000 XPath oddities like this compel us to recommend against the use of long paths like A B in predicates. Most likely the meaning you wanted is actually a nested predicate like Order Product @UnitPrice 10 anyway. Because SQL XML does not support positional predicates it uses any semantics for both of these XPaths. That is both Order 0 Product @UnitPrice 10 and Order Product @UnitPrice 10 produce the same XML result in SQL XML. This deviation from the W3C standard also applies to relational and equality operators. These operators apply special conversion rules to their operands that we will not explain in detail here. For example an expression @Date 1998-10-01 should first convert both the nodeset @Date and the string 1998-10-01 to number which will result in NaN and then compare them which will result in false since NaN compared with anything is false . SQL XML instead performs a string comparison with the expected result true if and only if the value of @Date is a date later than the one indicated in the string . Here s an XPath that attempts string and date comparisons. These would not work in ordinary XML documents but do work in SQL XML Customer @CustomerID PARIS Order @OrderDate 1999-01-01 which results in the XML Order OrderID 10322 OrderDate 1996-10-04 Product ProductID P52 UnitPrice Units 38 Order Order OrderID 10354 OrderDate 1996-11-14 Product ProductID P1 UnitPrice Units 39 Product ProductID P29 UnitPrice Units 0 Order Order OrderID 10474 OrderDate 1997-03-13 Product ProductID P14 UnitPrice Units 35 Product ProductID P28 UnitPrice Units 26 Product ProductID P40 UnitPrice Units 123 Product ProductID P75 UnitPrice Units 125 Order -- . -- At the time of this writing none of the XPath string functions concat substring etc. are supported. Microsoft has announced intentions to support these functions in the near future. XPath and the XML View XPath works by translating the XPath .

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.