postgresql拆分文本

unnest(string_to_array('文本',','))

示例:

with orders as (select unnest(string_to_array(${参数1},',')))

select * from analy.test1 where id in (select * from orders)

sql 复制代码
with orders as (select unnest(string_to_array(${参数1},',')))
select * from analy.test1 where id in (select *  from orders)
相关推荐
超级小忍4 分钟前
如何配置 MySQL 允许远程连接
数据库·mysql·adb
吹牛不交税16 分钟前
sqlsugar WhereIF条件的大于等于和等于查出来的坑
数据库·mysql
hshpy39 分钟前
setting up Activiti BPMN Workflow Engine with Spring Boot
数据库·spring boot·后端
文牧之2 小时前
Oracle 审计参数:AUDIT_TRAIL 和 AUDIT_SYS_OPERATIONS
运维·数据库·oracle
篱笆院的狗2 小时前
如何使用 Redis 快速实现布隆过滤器?
数据库·redis·缓存
洛神灬殇3 小时前
【LLM大模型技术专题】「入门到精通系列教程」基于ai-openai-spring-boot-starter集成开发实战指南
网络·数据库·微服务·云原生·架构
小鸡脚来咯3 小时前
redis分片集群架构
数据库·redis·架构
christine-rr3 小时前
征文投稿:如何写一份实用的技术文档?——以软件配置为例
运维·前端·网络·数据库·软件构建
海尔辛4 小时前
SQL 基础入门
数据库·sql
betazhou5 小时前
有没有 MariaDB 5.5.56 对应 MySQL CONNECTION_CONTROL 插件
linux·数据库·mysql·oracle·mariadb