![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
pgsql
vanillamba
拈花微笑
展开
-
pgsql 查询字段中根据逗号分隔的字符串的的 个数
select length(translate(column,','||column,','))+1 from table参见:1.translate 与replace类似是替换函数,但translate是一次替换多个单个的字符。2.基本用法,字符对应替换。例子:select translate('1234567','123' ,'abc') from dual ;--1...原创 2019-12-09 16:59:01 · 3482 阅读 · 0 评论 -
数组包含 @>
Table 9-45shows the operators available for array types.Table 9-45. Array OperatorsOperator Description Example Result = equal ARRAY[1.1,2.1,3.1]::int[] = ARRAY[1,2,3] t &...转载 2019-10-09 16:06:40 · 233 阅读 · 0 评论