© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
1 reply
Waldemar

How to search across multiple columns and tables

Hi guys. For our app I want to implement a "global search". Basically a search field in the top nav bar where users can enter a (part of) a vendor / client / product / ... name / description / ID etc. It can be just a simple case-insensitive matching ala
LIKE
LIKE
, doesn't have to be super smart.
What options do I have to implement this with Postgres / Supabase JS client?
The only thing that comes to mind is a
VIEW
VIEW
with
UNION ALL
UNION ALL
or similar. But then do something like this with Supabase JS client:
.or('like.id.%search string%, like.name.%search string%')
.or('like.id.%search string%, like.name.%search string%')

Any ideas are welcome!
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

Documentation for Search Multiple Columns
SupabaseSSupabase / help-and-questions
8mo ago
How to select multiple columns?
SupabaseSSupabase / help-and-questions
4y ago
How to query a table by multiple columns
SupabaseSSupabase / help-and-questions
4y ago
How to insert to multiple tables in one request?
SupabaseSSupabase / help-and-questions
4y ago