Jak*_*aur 4 postgresql supabase supabase-database
我正在使用什么数据库?
我需要什么?
.update({ name: 'Middle Earth' })我还需要自动更新表中的时间戳。create extension if not exists moddatetime schema extensions;
-- assuming the table name is "todos", and a timestamp column "updated_at"
-- this trigger will set the "updated_at" column to the current timestamp for every update
create trigger handle_updated_at before update on todos
for each row execute procedure moddatetime (updated_at);
Run Code Online (Sandbox Code Playgroud)
moddatetime扩展程序怎么办?这个stackoverflow 问题会给你答案。