© 2026 Hedgehog Software, LLC

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

Get project ref from SQL?

Is project-ref-id stored in any table inside the postgresql?
I want to get the current project-ref-id using SQL.

This is to make a generic SQL query which needs project-ref-if, so I can run same sql in any project.

EXEUTE function do_something(SELECT project_ref_id FROM some_table)
EXEUTE function do_something(SELECT project_ref_id FROM some_table)
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

Get project-ref from the sql level
SupabaseSSupabase / help-and-questions
4y ago
SQL snippets - get data from another project
SupabaseSSupabase / help-and-questions
4y ago
Invalid project ref
SupabaseSSupabase / help-and-questions
4y ago
Get supabase project name using SQL query
SupabaseSSupabase / help-and-questions
4y ago