My sql structure has a field which is array.
The value is
{5010011,5010031,5010041,5010081}
I execute a query.
Update users
set faces=uniq(array_cat(faces,ARRAY[5010011,5010031,5010041,5010081]))
I get the result is
{5010011,5010031,5010041,5010081,5010011,5010031,5010041,5010081}
I use the uniq() function, but it does not work. I want to remove the duplicate value in array.