当前位置:网站首页>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即可
边栏推荐
猜你喜欢
QQ medicine, Tencent ticket
How far can it go to adopt a cow by selling the concept to the market?
JS缓动动画原理教学(超细节)
Custom thread pool rejection policy
提升树莓派性能的方法
Distributed transaction solution
Esp32 ① compilation environment
Talk about pseudo sharing
centso7 openssl 报错Verify return code: 20 (unable to get local issuer certificate)
MongoDB内部的存储原理
随机推荐
Shell batch file name (excluding extension) lowercase to uppercase
JS function 返回多个值
JS function returns multiple values
toRaw和markRaw
Toraw and markraw
How to make the new window opened by electorn on the window taskbar
LeetCode_二分搜索_中等_153.寻找旋转排序数组中的最小值
PHP - laravel cache
作战图鉴:12大场景详述容器安全建设要求
QQ medicine, Tencent ticket
MongoDB内部的存储原理
MySQL入门尝鲜
MongoDB命令汇总
1. Deep copy 2. Call apply bind 3. For of in differences
User management summary of mongodb
ESP32系列专栏
[QNX Hypervisor 2.2用户手册]6.3.4 虚拟寄存器(guest_shm.h)
QQ的药,腾讯的票
Realbasicvsr test pictures and videos
[learning notes] zkw segment tree