postgresql拆分文本

unnest(string_to_array(‘文本’,‘,’))
示例:
with orders as (select unnest(string_to_array(${参数1},‘,’)))
select * from analy.test1 where id in (select * from orders)

with orders as (select unnest(string_to_array(${参数1},',')))
select * from analy.test1 where id in (select *  from orders)

相关推荐

  1. postgresql分文

    2024-01-03 11:18:02       57 阅读
  2. PostgreSQL字符串分割函数大全

    2024-01-03 11:18:02       45 阅读
  3. PostgreSQL】表管理-分区

    2024-01-03 11:18:02       43 阅读
  4. PostgreSQL源码分析——CHECKPOINT

    2024-01-03 11:18:02       28 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-01-03 11:18:02       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-01-03 11:18:02       106 阅读
  3. 在Django里面运行非项目文件

    2024-01-03 11:18:02       87 阅读
  4. Python语言-面向对象

    2024-01-03 11:18:02       96 阅读

热门阅读

  1. Amazon API Gateway CORS 实战

    2024-01-03 11:18:02       55 阅读
  2. C++:自创小游戏

    2024-01-03 11:18:02       58 阅读
  3. Apache网站服务基础

    2024-01-03 11:18:02       44 阅读
  4. 安全与认证Week3 Tutorial

    2024-01-03 11:18:02       45 阅读
  5. Linux下查看CPU信息

    2024-01-03 11:18:02       59 阅读
  6. 终端上的GitHub Copilot以及IDE上的GitHub Copilot

    2024-01-03 11:18:02       58 阅读