什么是3个月之前的烦恼 [英] What Is the querry of Before 3 months
本文介绍了什么是3个月之前的烦恼的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好我的产品表在该表expirydate是可用的。如何在3个月之前显示到期产品
Hi i''ve Product Table in that table expirydate is available.how to show expiry products before 3 months
推荐答案
您可以编写如下的SQL查询: br $> b $ b
从产品表中选择productName,ExpireDate月份(getdate()) - 月份(expireDate列)< = 3
尝试这个。
you can write sql query like:
select productName,ExpireDate from Product Table where month(getdate())- month(expireDate Column )<=3
try this one.
这篇关于什么是3个月之前的烦恼的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文