摘要: 在SQL Server中利用 FOR XML PATH 语句能够把查询的数据生成XML数据,下面是它的一些应用示例。view sourceprint?1DECLARE @TempTable table(UserID int , UserName nvarchar(50)); 2insert into @TempTable (UserID,UserName) values (1,'a') 3insert into @TempTable (UserID,UserName) values (2,'b') 45select UserID,UserName from @T 阅读全文
posted @ 2011-07-09 09:48 叮/当 阅读(235) 评论(0) 推荐(0) 编辑
摘要: create table tb(id int,fid int,name nvarchar(10)) insert into tb select 1,0,'百度知道' insert into tb select 2,1,'电脑/网络' insert into tb select 3,2,'程序设计' insert into tb select 4,3,'数据库程序设计' insert into tb... 阅读全文
posted @ 2011-07-09 09:39 叮/当 阅读(312) 评论(0) 推荐(0) 编辑