© 2026 Hedgehog Software, LLC

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

Using now() in from().update()

Hi!

In knex, I could easily do
knex('updates').update('updatedAt',knex.fn.now()).where('id',1);
knex('updates').update('updatedAt',knex.fn.now()).where('id',1);
.

How can I use now() function in .update()? Is it possible?
supabase.from('updates').update({ updatedAt: now() }).eq('id',1);
supabase.from('updates').update({ updatedAt: now() }).eq('id',1);


Thanks
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 scopes using signInWithOAuth?
SupabaseSSupabase / help-and-questions
12mo ago
Bulk Update using upsert
SupabaseSSupabase / help-and-questions
3y ago
Storage ``from.update()`` vs ``from.upload()``
SupabaseSSupabase / help-and-questions
4y ago
update tables from backend.
SupabaseSSupabase / help-and-questions
4y ago