RE: [PHP-ES] [OT] consulta MYSQL
| From: | fmendoza | Date: | Tue, 26 Feb 2002 12:56:32 +0000 |
| Subject: | RE: [PHP-ES] [OT] consulta MYSQL | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-19688@lists.php.net to get a copy of this message | ||
Si quieres hacer comparaciones entre fechas mejor usa el comando
TO_DAYS().
SELECT * FROM materias WHERE id_alunmo='$key' AND TO_DAYS(fecha) >=
TO_DAYS($inicio) AND TO_DAYS(fecha) <= TO_DAYS($fin);