Changes between Version 14 and Version 15 of v6/pgsummary
- Timestamp:
- 05/03/2012 11:18:38 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v6/pgsummary
v14 v15 81 81 select STRING_AGG (company_name, ',') from pp_ad group by brand_id ; 82 82 select STRING_AGG (distinct area_id::text, ',') from pp_ad group by brand_id ; 83 84 pg 还是很能干的,果然找到了一个替代方案 85 1 cyp_app=> \df STRING_AGG 86 2 List of functions 87 3 Schema | Name | Result data type | Argument data types | Type 88 4 ------------+------------+------------------+---------------------+------ 89 5 pg_catalog | string_agg | text | text, text | agg 90 6 (1 row) 91 92 http://bbs.pconline.cn/topic-2159.html 93 83 94 }}} 84 95 … … 181 192 }}} 182 193 183 * oracle wm_concat 函数的替代方案184 {{{185 oracle 数据库中比较常用到wmsys.wm_concat () 来连接字符串186 187 把多行的数据库连接到一起(默认是用逗号分割的)188 189 oracle 转pg 需要一个替代方案,尽量的应用代码改动小,190 191 pg 还是很能干的,果然找到了一个替代方案192 1 cyp_app=> \df STRING_AGG193 2 List of functions194 3 Schema | Name | Result data type | Argument data types | Type195 4 ------------+------------+------------------+---------------------+------196 5 pg_catalog | string_agg | text | text, text | agg197 6 (1 row)198 199 http://bbs.pconline.cn/topic-2159.html200 201 }}}
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/global/2008/images/jss/m_logo091125.jpg)