CREATE TABLE em_user
(
user_id character(10),
last_attempt integer,
last_unsuccessfull_login timestamp with time zone,
is_locked boolean DEFAULT false);
UPDATE em_user
SET is_locked = TRUE
WHERE last_attempt >3 AND last_unsuccessfull_login=last_unsuccessfull_login+'2 minutes';
我想在 postgresql 中 1 小时后更新我的表。