ame],NULL AS [Product!2!ProductID!IDREF], NULL AS [Product!2!ProductName] FROM Categories WHERE CategoryID < 3 UNION ALL SELECT 2 ,1 , Categories.CategoryID, NULL, ProductID, ProductName FROM Categories JOIN Products ON Categories.CategoryID = Products.CategoryID AND ProductID <5 WHERE Categories.CategoryID < 3 ORDER BY [Category!1!ID!ID] ,[Product!2!ProductID!IDREF] FOR XML EXPLICIT,XMLDATA 返回结果: <Schema name="Schema2" xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes"> <ElementType name="Category" content="mixed" model="open"> <AttributeType name="ID" dt:type="id"/> <AttributeType name="Name" dt:type="string"/> <attribute type="ID"/> <attribute type="Name"/> </ElementType> <ElementType name="Product" content="mixed" model="open"> <AttributeType name="ProductID" dt:type="idref"/> <AttributeType name="ProductName" dt:type="string"/> <attribute type="ProductID"/> <attribute type="ProductName"/> &nb << 上一页 [21] [22] [23] [24] 下一页 [Access]sql随机抽取记录 [Access]ASP&SQL让select查询结果随机排序的实现方法 [聊天工具]企业邮件系统的利器----FoxMail Server [系统软件]OPEN SERVER 5.0.5安装EXP300阵列柜 [系统软件]SQL语句性能优化--LECCO SQL Expert [系统软件]关于Windows2000Server的灾难恢复 [常用软件][网络]下载服务革命性风暴Poco Server评测 [C语言系列]动态创建SQL Server数据库、表、存储过程等架构信… [C语言系列]SQL Server到DB2连接服务器的实现 [C语言系列]SQL Server到SYBASE连接服务器的实现
|