sql2005 to sql2000 (FOR XML PATH),该如何解决
sql2005tosql2000 (FOR XML PATH)SQL codeSELECT STUFF(( SELECT ,+ RTRIM(aID)FROM t AS AWHERE CHARIN
sql2005 to sql2000 (FOR XML PATH)
SQL codeSELECT STUFF(( SELECT ','+ RTRIM(aID) FROM t AS A WHERE CHARINDEX(RTRIM(bID),TaskIDs) > 0 FOR XML PATH('')),1,1,'') AS Name, TaskIDs FROM PMS_TaskAllocation AS B
这段是在sql2005执行的sql,如何转成sql2000的语句
原帖:sql2005 to sql2000 (with关键字)
[解决办法]SQL2000 是没有 fro xml path 关键字的
[解决办法]2000要用函数的。
[解决办法]http://topic.csdn.net/u/20080612/22/c850499f-bce3-4877-82d5-af2357857872.html
参照着写吧 合并拆分列都写烂了