RE: [PHP-DB] mySQL Query

From: Date: Fri, 11 Aug 2000 23:51:19 +0000
Subject: RE: [PHP-DB] mySQL Query
Groups: php.db php.general 
Request: Send a blank email to php-general+get-11432@lists.php.net to get a copy of this message
something like this select * from table_name where TO_DAYS(NOW)) - TO_DAYS(field_name) = 1; That should work.. > -----Original Message----- > From: Ralph Guzman [SMTP:raguzman@netraiser.com] > Sent: Friday, August 11, 2000 6:49 PM > To: PHP General Mailing List; PHP DB Mailing List > Subject: [PHP-DB] mySQL Query > > Can somebody provide me with an example of how I can write a query that > will > display results for the previous day. > > in the mySQL table I have a field for date that uses this format: > > YYYY-MM-DD > > so if today is 2000-08-11 > > I need to get everything for 2000-08-10 > > your help is appreciated. > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#11432) next »