我认为这应该可以通过类似以下方式实现:
SELECT user_id, CURRENT_TIMESTAMP AS granted_at
FROM topic_users
WHERE topic_id = 281534
AND total_msecs_viewed/60000 >= 5 -- 最少观看分钟数
我认为这应该可以通过类似以下方式实现:
SELECT user_id, CURRENT_TIMESTAMP AS granted_at
FROM topic_users
WHERE topic_id = 281534
AND total_msecs_viewed/60000 >= 5 -- 最少观看分钟数