in reply to Re^3: Detecting 1 day ago
in thread Detecting 1 day ago
I generally do this in a three stage format, so if the above is true, I know there's a better way of doing this.SELECT * FROM messages -> WHERE DATE_SUB(CURDATE(),INTERVAL 1 DAY) <= message_data;
Instead of caring what results came back, I only need to check to see that at least SOMETHING came back in the last day. How would I do that without having to do an sth->fetch?my $data = qq(SELECT * FROM messages..); my $sth = $dbh->prepare($data); $sth->execute();
Sorry, new to mysql.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Detecting 1 day ago
by EvanCarroll (Chaplain) on Feb 25, 2006 at 04:43 UTC | |
by Anonymous Monk on Feb 25, 2006 at 05:21 UTC |