
April 24th, 2000, 10:08 PM
|
|
Contributing User
|
|
Join Date: Oct 1999
Location: Annapolis, Maryland US
Posts: 113
Time spent in forums: < 1 sec
Reputation Power: 14
|
|
|
There are many different time manipulation functions for valid datetime columns - just check on MySQL's online manual.
A personal favorite is the to_days() function....
> select * from table_name
> where to_days(now())-to_days(activity_date)
> <= 7;
// show me all the activities that occurred within the last week.
|