© 2026 Hedgehog Software, LLC

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

Create new table on row insert

Hi All.
I would like to automatically create a new database table when a row is added to one of db tables. For example, if I have a table that stores basic city information (one column being city_name), I would like to automatically create a new table (called city_name) when a new city is added. I would like to do this with a database trigger if possible.

Any help would be greatly appreciated.

Thanks

Rob
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

Finding ID on connected table to insert row? (React.js)
SupabaseSSupabase / help-and-questions
4w ago
Insert row into RLS enabled table from edge function using new keys
SupabaseSSupabase / help-and-questions
7mo ago
Best way to create shortkey on new row?
SupabaseSSupabase / help-and-questions
4y ago
42501 - "New row violates row-level security for table"
SupabaseSSupabase / help-and-questions
3y ago