我收到以下查询的错误.基本上要||和' distinct一起使用.
select string_agg( 'pre' || distinct user.col, 'post')
Run Code Online (Sandbox Code Playgroud)
它工作得很好
select string_agg( 'pre' || user.col, 'post')
Run Code Online (Sandbox Code Playgroud)
& 这个
select string_agg(distinct user.col, 'post')
Run Code Online (Sandbox Code Playgroud)
Clo*_*eto 28
select string_agg(distinct 'pre' || user.col, 'post')
Run Code Online (Sandbox Code Playgroud)
由于上面将拒绝在distinct聚合中使用索引'pre'取出
select 'pre' || string_agg(distinct user.col, 'postpre')
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
13127 次 |
| 最近记录: |