2015-09-15 115 views
0

我目前正在查询通知服务。我想获取即将到期的日期通知。我的表是: enter image description here获取upcomming过期日期通知和SQL中获取日期

+0

你期待什么结果? –

+0

亲爱的WojciechJasiński,,,我想Fetch emp_name Upcomming有效日期像Raj Jain Lic_expDate今天 –

+0

@AsheeshYadav你能告诉我哪个字段'Upcomming Expiry Date'你想要吗? 像例如'Lic_expDate'或'HazVal_expDate'或'PsReport_expDate'。 –

回答

1

来得到当前日到期日期,使用这个查询:

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; 
0
SELECT * FROM querydata WHERE manfacexp_date > date(now());