Filtering XML
摘要
The filtering mechanism in XQuery introduces unique concepts and behaviors that differ significantly from the familiar T-SQL WHERE clause. While many DBAs and developers instinctively approach XQuery filtering with a T-SQL mindset, this often leads to inefficient or overly complex solutions, particularly when implemented through dynamic SQL. Such approaches can be difficult to maintain and prone to performance bottlenecks.