5
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小時後更新我的表。postgresql在1小時後更新
鎖定用戶嘗試失敗是一個可怕的想法,因爲它會允許用戶拒絕其他用戶。 – ThiefMaster