当前位置:网站首页>postgresql array类型,每一项拼接
postgresql array类型,每一项拼接
2022-07-07 11:36:00 【小兜全糖(Cx)】
假如有这种case
字段 test_array_concat是array类型,数据如下
{
2022,2023}
现在想改成
{
2022.xml,2023.xml}
则可以如下
update test set test_array_concat=(select array(select unnest(test_array_concat)||'1.xml' from test where id=294662523385290759)) where voucher_id=294662523385290759;
其中
unnest 会将array展开成行,拼接之后再转换成array即可
边栏推荐
- 数字ic设计——SPI
- [learning notes] segment tree selection
- Storage principle inside mongodb
- Realize the IP address home display function and number home query
- Introduce six open source protocols in detail (instructions for programmers)
- 10 pictures open the door of CPU cache consistency
- 室内ROS机器人导航调试记录(膨胀半径的选取经验)
- 靠卖概念上市,认养一头牛能走多远?
- Unity build error: the name "editorutility" does not exist in the current context
- MongoDB命令汇总
猜你喜欢

高端了8年,雅迪如今怎么样?

Xshell connection server changes key login to password login
![[dark horse morning post] Huawei refutes rumors about](/img/d7/4671b5a74317a8f87ffd36be2b34e1.jpg)
[dark horse morning post] Huawei refutes rumors about "military master" Chen Chunhua; Hengchi 5 has a pre-sale price of 179000 yuan; Jay Chou's new album MV has played more than 100 million in 3 hours

聊聊伪共享

提升树莓派性能的方法

Vscade editor esp32 header file wavy line does not jump completely solved

Scrapy教程经典实战【新概念英语】

LED light of single chip microcomputer learning notes

Esp32 ① compilation environment

PAcP learning note 1: programming with pcap
随机推荐
JS缓动动画原理教学(超细节)
Flink | multi stream conversion
室内ROS机器人导航调试记录(膨胀半径的选取经验)
My "troublesome" subordinates after 00: not bad for money, against leaders, and resist overtime
Move base parameter analysis and experience summary
10 张图打开 CPU 缓存一致性的大门
ESP32系列专栏
Data refresh of recyclerview
Introduce six open source protocols in detail (instructions for programmers)
MongoDB内部的存储原理
作战图鉴:12大场景详述容器安全建设要求
JS function returns multiple values
PAcP learning note 1: programming with pcap
[QNX Hypervisor 2.2用户手册]6.3.4 虚拟寄存器(guest_shm.h)
QQ的药,腾讯的票
Mongodb meets spark (for integration)
OSI seven layer model
cmake 学习使用笔记(一)
实现IP地址归属地显示功能、号码归属地查询
Esp32 construction engineering add components