Changes between Version 12 and Version 13 of v6/pgsummary


Ignore:
Timestamp:
05/03/2012 10:36:14 AM (14 years ago)
Author:
huangzhong
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • v6/pgsummary

    v12 v13  
    7272) 
    7373SELECT * FROM source; 
     74}}} 
     75* wm_concat写法调整 
     76{{{ 
     77oracle(默认的连接符为逗号): 
     78select wm_concat (distinct area_id) from pp_ad group by brand_id ; 
     79 
     80pg: 
     81select STRING_AGG (company_name, ',') from pp_ad group by brand_id ; 
     82select STRING_AGG (distinct area_id::text, ',') from pp_ad group by brand_id ; 
    7483}}} 
    7584