我有一个包含12个医技ceritifcations,到期日这个大数据库表,文件的链接,他们是从什么公司。我需要在认证到期日的90,60,30和15天内通过电子邮件生成报告。自动生成基于日期(的ColdFusion)电子邮件
这里的DATEBASE的样子:
certID,
profileID,
cprAdultExp,
cprAdultcompany,
cprAdultImage,
cprAdultOnFile,
cprInfantChildExp,
cprInfantChildcompany,
cprInfantChildImage,
cprInfantChildOnFile,
cprFPRExp,
cprFPRcompany,
cprFPRImage,
cprFPROnFile,
aedExp,
aedcompany,
aedImage,
aedOnFile,
firstAidExp,
firstAidcompany,
firstAidImage,
firstAidOnFile,
emtExp,
emtcompany,
emtImage,
emtOnFile,
waterSafetyInstructionExp,
waterSafetyInstructioncompany,
waterSafetyInstructionImage,
waterSafetyInstructionOnFile,
bloodPathogensExp,
bloodPathogenscompany,
bloodPathogensImage,
bloodPathogensOnFile,
oxygenAdminExp,
oxygenAdmincompany,
oxygenAdminImage,
oxygenAdminOnFile,
lifegaurdingExp,
lifegaurdingcompany,
lifegaurdingImage,
lifegaurdingOnFile,
wildernessResponderExp,
wildernessResponderCompany,
wildernessResponderImage,
wildernessResponderOnFile,
notes
我怎样写某种循环来检查所有的日期(以EXP什么是日期),然后存储哪些即将到期,并通过电子邮件发送所有一个人的细节?
看起来像你的数据库设计是不是正常化如此热衷! – time4tea 2011-01-14 20:50:53