gpt4 book ai didi

mysql - 获取即将到来的到期日期通知并在 SQL 中获取日期

转载 作者:行者123 更新时间:2023-11-29 11:59:46 25 4
gpt4 key购买 nike

我目前正在研究通知服务查询。我想要获取即将到期日期通知。我的 table 是: enter image description here

最佳答案

要获取当天的到期日期,请使用以下查询:

select emp_name, LIC_expDate from querydata where LIC_expDate = CURDATE();

要获取从今天到即将到来的日期的所有到期日期的列表,请使用以下查询:

select emp_name, LIC_expDate from querydata where LIC_expDate >= CURDATE() order by LIC_expDate asc;

关于mysql - 获取即将到来的到期日期通知并在 SQL 中获取日期,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32580376/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com