Topic awaiting preservation: Update a MySQL 5.0 InnoDB table column on a daily basis (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: United States |
posted 04-10-2009 04:41
Basically, I have a hit counter that I keep track of using an InnoDB table on a MySQL 5.0 database. The table has six fields (and a seventh field that's not relevant to this discussion): "all", "all_unique", "day", "day_unique", "month", and "month_unique". The "day" and "month" keys show the hits for the current day/month, and therefore need to be automatically cleared on a daily and monthly basis, respectively. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 04-10-2009 08:56
read up on cron jobs. |
Nervous Wreck (II) Inmate From: United States |
posted 04-11-2009 01:57 |