select top 10 * from Tbl_SysUserFiles order by OP_DATE desc --where UserID=@UserID
select top 10 UserID, FileName = (stuff((select ',' + FileName from Tbl_SysUserFiles where UserID =
a.UserID for xml path('')),1,1,'')) from Tbl_SysUserFiles a group by UserID order by UserID desc
SQL SERVER将多行数据合并成一行
最新推荐文章于 2024-08-19 03:41:11 发布