我创建了表财务并设置了一个列日期,
CREATE TABLE IF NOT EXISTS `newloanauto` (
`customerid` int(11) NOT NULL,
`loannumber` varchar(45) NOT NULL,
`vechiclenumber` varchar(45) NOT NULL,
`vechiclename` varchar(45) NOT NULL,
`vechicledescription` text NOT NULL,
`insuranceexdte` varchar(150) NOT NULL,
`loanamount` int(100) NOT NULL,
`setinterest` double NOT NULL,
`noofdues` int(11) NOT NULL,
`interestcost` double NOT NULL,
`total` double NOT NULL,
`documentcharges` double NOT NULL,
**`dates` date NOT NULL,**
PRIMARY KEY (`loannumber`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
(102,'1002','6656','fhh','hgh','1212',246356,56,656,656,100,56,'2014-09-23')< /强>,
我想在一个月后提醒特定客户。我可以从表中获取特定记录。(30天到期时间)
答案 0 :(得分:0)
select * from newloanauto where date=(now()+interval 30 day)
从当前日期起30天。您可以将now()
替换为您认为合适的任何日期。