dongshen9058 2013-11-12 20:24
浏览 8

获取日期时间列尚未传递的记录的SQL语句

In my login script I have a password reset function that creates a record that includes a unique token and an expiry date (datetime field) of 48 hours from the time the password reset was requested.

How do I create an SQL statement that will check the token is still valid by only getting the record if the expiry date has not expired e.g.

SELECT * FROM resetpasstable WHERE expires > now()

I'm kind of new to all this so any help appreciated.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
    • ¥500 火焰左右视图、视差(基于双目相机)
    • ¥100 set_link_state
    • ¥15 虚幻5 UE美术毛发渲染
    • ¥15 CVRP 图论 物流运输优化
    • ¥15 Tableau online 嵌入ppt失败
    • ¥100 支付宝网页转账系统不识别账号
    • ¥15 基于单片机的靶位控制系统
    • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
    • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?