1

In Postgresql, if I have an array of team_id in my table for example team_id=[2,3,5,7] when I want to remove 7 from the array of team_id what is the command?

I write :

SELECT array_remove(ARRAY[team_id],7)

but it is not correct

1 Answer 1

2

The array keyword is unnecessary:

select array_remove(team_id, 7)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.