1.简单查询
查询语句:
SELECT CategoryID,
CategoryName AS Nanme
FROM Categories
WHERE CategoryID < 3
ORDER BY CategoryID DESC
FOR XML RAW
返回结果:
2.连接查询
查询语句:
SELECT Categories.CategoryID,
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/