摘要:
http://www.jb51.net/article/28753.htm要实现的SQL查询很原始:要求从第一个表进行查询得到第二个表格式的数据,上网查询之后竟然能写出下面的SQL:复制代码代码如下:select * from userinoSELECT * FROM(SELECT DISTINCT userpartFROM userino)AOUTER APPLY(SELECT[usernames]= replace(replace(replace((SELECT username as value FROM userino NWHERE userpart = A.userpart orde 阅读全文