我有一個包含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