© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
16 replies
STILLWATER

Comparing Arrays in Where or Having Clause

I want to check if given array_agg(column) is in the array of arrays I sent in the rpc,
consider following:
I want to check if ['A','B'] is in [['A','A'],['A','B']]
I looked around for array comparision in psql just found <@ and the && operator for checking subset or overlaping i.e exact arrays, how do I check if array is IN the array of arrays?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

“UPDATE requires a WHERE clause”
SupabaseSSupabase / help-and-questions
4y ago
Parsing arrays in trigger functions
SupabaseSSupabase / help-and-questions
4y ago
Branching - not comparing
SupabaseSSupabase / help-and-questions
2mo ago
'Failed to run sql query column 'where clause argument' does not exist'
SupabaseSSupabase / help-and-questions
4y ago