过去30天内最后创建用户的SQL查询

Got it.

SELECT username FROM users WHERE created_at >= CURRENT_TIMESTAMP - INTERVAL '30 days' AND staged = false
2 个赞