提问人:Sri 提问时间:7/28/2022 最后编辑:jarlhSri 更新时间:8/1/2022 访问量:47
此查询需要花费大量时间,如何优化此查询?
This query is taking much time how can i optimize this query?
问:
Select a, b, c, d, cast(replace(replace (stuff((
select ', ' +LTrim(rtrim(e1))
from (
select e as e1, a, c
from table1
where a = am.a and c= am.c
group by a, c, e) as T
for xml path('')), 1,1,'c), '<', '<') '>', >') as varchar) as f
from table1 am where c is not null
答: 暂无答案
评论