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)
相关推荐
+VX:Fegn08957 分钟前
计算机毕业设计|基于springboot + vue旅游信息推荐系统(源码+数据库+文档)
数据库·vue.js·spring boot·后端·课程设计·旅游
百锦再10 分钟前
国产数据库的平替亮点——关系型数据库架构适配
android·java·前端·数据库·sql·算法·数据库架构
wusp199413 分钟前
基于vite + nodejs + MongoDB + vue2 的博客发布系统
数据库·mongodb
全栈小513 分钟前
【数据库】浙人医携手金仓数据库,打造全国首个多院区异构多活容灾架构
数据库·1024程序员节·金仓
studytosky1 小时前
Linux 基础开发工具(3):Git 控制与 GDB 调试实用指南
linux·运维·服务器·网络·数据库·git
凌睿马1 小时前
关于复杂数据结构从MySQL迁移到PostgreSQL的可行性
数据结构·数据库·mysql
是一个Bug1 小时前
声明式事务:深度解析与实战指南
数据库·oracle
laocooon5238578861 小时前
C#二次开发中简单块的定义与应用
android·数据库·c#
不穿格子的程序员1 小时前
Redis篇4——Redis深度剖析:内存淘汰策略与缓存的三大“天坑”
数据库·redis·缓存·雪崩·内存淘汰策略
IT枫斗者1 小时前
Netty的原理和springboot项目整合
java·spring boot·后端·sql·科技·mysql·spring