我尝试更新psql中的过程,代码没有错误:
CREATE OR REPLACE FUNCTION public.decrement_user_followers()
RETURNS trigger
LANGUAGE plpgsql
AS $function$
BEGIN
UPDATE users SET unit_followers = unit_followers - 1 WHERE id = OLD.user_id_followed;
UPDATE users SET unit_following = unit_following - 1 WHERE id = OLD.user_id_follower;
RETURN OLD;
END $function$
但是,当我试图看到更改\df+ decrement_user_followers
给我旧代码时
有什么建议吗?
答案 0 :(得分:0)
";"最后失踪了...啊啊
setText(df.format(item));