简体   繁体   中英

How can I update a specific array in postgres

hello everyone I would like to know if there is an easy way to update an array. Im trying to update the first row of my column with a new array.

这是我想要做的

这是我的表,我试图更新我的列的第一行

my postgreSQL version: PostgreSQL 12.4, compiled by Visual C++ build 1914, 64-bit

Is this what you want?

update invitation_table
set invitee = '{1, 3, 4}'
where invitee = '{2, 5}'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM