我得到下面的查询错误.基本上使用||
&;distinct
在一起.
select string_agg( 'pre' || distinct user.col, 'post')
这样很好用
select string_agg( 'pre' || user.col, 'post')
&;这
select string_agg(distinct user.col, 'post')
我得到下面的查询错误.基本上使用||
&;distinct
在一起.
select string_agg( 'pre' || distinct user.col, 'post')
这样很好用
select string_agg( 'pre' || user.col, 'post')
&;这
select string_agg(distinct user.col, 'post')
select string_agg(distinct 'pre' || user.col, 'post')
由于上述情况将拒绝在distinct
聚合中使用索引,因此将'pre'
go 掉
select 'pre' || string_agg(distinct user.col, 'postpre')